-
Notifications
You must be signed in to change notification settings - Fork 986
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
Unclear documentation about quiet time for RedisClient#shutdown #1212
Comments
Timeouts on We should update our documentation to reflect this aspect. We're closing all connections when calling |
Thanks for answer. But not sure that realize the problem why shutdown couldn't be delayed for quite period? and But if so, shouldn't they be rather marked as deprecated and removed in the next release? |
What is your use case for delaying the shutdown and requiring a driver to set up a timer for the actual resource disposal? Although typical applications control the shutdown of eventloops via ClientResources, we still allow creation of the client with a ClientResources object whose lifecycle is controlled by RedisClient. While that’s it the recommended approach, it’s not that bad that it would require deprecation and removal. |
we use
it will not help, since |
Can you also raise the same issue in the Spring Boot issue tracker? It could make sense to define shutdown dependencies to ensure the frontend stops accepting web requests before other components get shut down. |
Raised spring-projects/spring-boot#19951, |
Thanks. Graceful removal and taking traffic away from a service is an entirely different discussion. That concern should be rather handled on an application level where the service gets disabled (i.e. excluded from the loadbalancing group) before the actual shutdown. We're going to update the documentation as mentioned. |
Docs are updated now. |
Bug Report
Current Behavior
When calling redisClient#shutdown with quite period, channel writer state is marked to Closed immediately (io.lettuce.core.protocol.DefaultEndpoint#closeAsync) and when new request is submitted during quite period (it's still not expired) we get "io.lettuce.core.RedisException: Connection is closed"
Stack trace
Input Code
Input Code
Expected behavior/code
According Netty documentation, requests submitted during the quite period should be processed:
Btw, is it worth adding a description for quite period from the documentation, because current description of parameter looks not clear?
Environment
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: