-
Notifications
You must be signed in to change notification settings - Fork 989
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
BugReport: ClusterTopologyRefreshTask is not shutdown when RedisClusterClient is shutdown #2904
Comments
@tishun @exceptionplayer please help review my pr 🙇 |
@thachlp did you check out the comments in the PR? |
Let me check |
This is a bit of a cat-and-mouse problem, because there is a chain of calls that lead to the actual execution of the task.
If during the refresh the event loop was required to close then the thread that initiated that would wait until the refresh is complete. |
Bug Report
When RedisClusterClient is shutdown, the ClusterTopologyRefreshTask may not be cancelled.
Current Behavior
When I close the RedisClusterClient by invoking RedisClusterClient.shutdown method, there is a chance that the ClusterTopologyRefreshTask is not stopped.
It seems the issue have be resolved here, but the latest code does not seem to work.
Stack trace
Environment
The text was updated successfully, but these errors were encountered: