-
Notifications
You must be signed in to change notification settings - Fork 992
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
ConnectionWatchdog tries to reconnect to the node's previous IP #1343
Comments
The round robin mechanism uses the given seed nodes for reconnect meaning that DNS caching needs to be considered. That mechanism is used formte default connection which is used for key-less commands. |
@mp911de, thanks for your quick reply. I've seen a couple of Github issues mentioning the DNS caching, but I think this does not apply here. I also forgot to mention that we're using Java 11. In the following log we have:
Why I think this is not a DNS issue:
Logs
|
All DNS resolution is handled by For some reason, this doesn't happen in your case. If you are able to reproduce the issue, please step into |
TL;DR Thanks again @mp911de for the provided information. I tried to reproduce the issue locally and I took the time to step into the code and understand it better. If Some notes:
Even reading through the Lettuce Reference Guide I wouldn't have it expected that the Watchdog would keep retrying old IP addresses.
|
I am facing the same exception as well, with almost all default configuration with lettuce. These are the configs:
this works with smaller data set, and always fail on large date set. |
Bug Report
Lettuce' ConnectionWatchdog keeps trying to connect to old IPs of Redis nodes.
Current Behavior
RoundRobinSocketAddressSupplier says that the IP Address of 3da56d06b4a34c20ee560d3ed28a2679ba089a30 is 10.6.21.237, but RedisStateMachine has it is as 10.6.37.76.
Log messages
Lettuce Configuration
Relevant Spring Boot Configuration
Expected behavior/code
ConnectionWatchdog should stop trying to connect to a previous IP address of a Redis node (which is now known to have another IP address).
Environment
The text was updated successfully, but these errors were encountered: