-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
LettuceConnectionProvider getConnection hang forever #2289
Comments
This is a known issue and we plan to address it. Meanwhile, you can enable eager connection initialization to initialize the connection early on. |
@mp911de |
Sure. |
Any updates on this? I'm experiencing what I believe to be the same/similar problem and I'm unable to send any commands through the shared connection. I've tried enabling eager initialization to no avail. |
@mp911de is there any configuration to avoid this BLOCKED? or only restart redis? |
Proposed workaround works. To enable eager connection: Example:
|
@mp911de Has there been a permanent fix for this? We are also facing this issue and in turn a lot of consequent issues. |
The fix is to enable eager connection initialization and not to use connection validation. |
We use spring-data-redis and lettuce to access the redis cluster.
I don't know the cause, but there was a problem that the connection could not be initialization complete
As a result, sharedConnection could not be inited and fell into a waiting state forever
And after that, all requests became blocking.
###thread dump
We are looking for the cause of the connection failing to connect.
My guess is that getConnection should have a timeout.
spring-data-redis/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceConnectionProvider.java
Line 53 in d2cae75
spring-data-redis/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceFutureUtils.java
Line 68 in d2cae75
This is because it should not "hang" when sharedConnection init fails for various reasons.
The text was updated successfully, but these errors were encountered: