-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Spring Data Redis 2.2.1 broke Sentinel compatibility #18942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In the latter situation you get this error. Apparently the solution is to override
|
@mp911de @christophstrobl can you please advise on what, if anything, we need to do in Boot to accomodate the Data Redis change? |
With Spring Data Redis 2.2, we introduced support for Sentinel authentication. That is, reusing authentication from That functionality gets only applied when using the Lettuce client. The Jedis client does not support Sentinel authentication yet. So we're in a situation where a potential property Reusing From a Spring Data Redis perspective, we could roll back that change and introduce a separate configuration property that is considered only when Redis is used in Sentinel mode. From a configuration perspective, it's not clear to me how to properly surface the aspect that Jedis does not support this configuration property. |
N.B. this change was in 2.2.1, not 2.2.0 |
Thanks, @mp911de. We've been applying the password to the sentinel config since 2.0.0.M3 so it sounds like Data Redis is now doing something itself that we've been doing for a while, and the way that Data Redis is doing it has broken something. @OrangeDog If you'd like us to consider more fine-grained control with a sentinel-specific password, please open a separate enhancement request. I suspect the current breakage needs to be fixed in Data Redis, but I'll wait for confirmation from @mp911de before closing this. |
Reuse of We can close this ticket here. With DATAREDIS-1060, we will revert to the previous behavior and introduce a new property Sorry for the inconvenience. |
Thanks, @mp911de. |
See DATAREDIS-1045.
For setups where redis and sentinel use different passwords,
spring.redis.sentinel.password
should be implemented.For setups where redis has a password but sentinel doesn't it needs to be disabled in some way.
The text was updated successfully, but these errors were encountered: