-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Bug Report: infinite loop in tmState.ChangeTabletType #9838
Comments
mvh-stripe
added
Needs Triage
This issue needs to be correctly labelled and triaged
Type: Bug
labels
Mar 7, 2022
deepthi
added
Component: Cluster management
and removed
Needs Triage
This issue needs to be correctly labelled and triaged
labels
Mar 7, 2022
/assign @vitessio/cluster-management |
3 tasks
3 tasks
Fixed by #9842 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview of the Issue
8b3f61f
^ A recent change introduced the possibility of an infinite loop when the context gets canceled. In the for loop, we never check if the context has an error, and so it keeps trying to call
topoServer.GetTablet
every 100ms and never exit. This is bad because this goroutine also holds the mutex for the entire duration. So retries of theChangeTabletType
rpc also get stuck on the mutex.Reproduction Steps
Binary Version
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: