Closed bernardoesteves closed 5 years ago
That seems a duplicate of #18942. Can you please override the version of Spring Data to the next service release? The Spring Data team released a Moore.SR2
that should fix the related issue.
Version 2.2.1 of boot, which I have also encountered, should be changed to 2.2.0. There is no auth when the redis sentinel cluster acquires the redisTemplate operation key
@xiaobai14 thanks for the feedback but the reporter already said that unless I am missing an element? Have you tried to upgrade the Spring Data version as I suggested in a comment above yours?
Thanks! @xiaobai14 and @snicoll @snicoll I did what you sugest, and it works now! My spring-boot-starter-parent still 2.2.1.RELEASE and just override:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>2.2.2.RELEASE</version>
</dependency>
Thanks again and sorry for the duplicate of #18942
No worries @bernardoesteves and thank you very much for the quick feedback. I am going to close this one. @xiaobai14 if you're having a different problem, please create a separate issue with a small sample.
@bernardoesteves @snicoll Thank you for your. I'm fine.
Upgrade Spring from 2.2.0 to 2.2.1 cause fail during cache connection:
My Connection Code:
I debugged the initialization and the password is set. If i change the spring version to 2.2.0 again the issue does not occur. I try to override only the spring-boot-starter-data-redis to 2.2.0 but the issue was not resolved. The application starts without problem, but when i need to call 'put' in Cache this error shows up.
I try this another implementation: https://dzone.com/articles/redis-sentinel-with-spring but not works too...
I also try use setSentinelPassword, but cant find the method: https://docs.spring.io/spring-data/redis/docs/current/api/org/springframework/data/redis/connection/RedisConfiguration.SentinelConfiguration.html#setSentinelPassword-char:A-