-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
TiDB does not clean table lock if restart on OOM #19240
Comments
/label sig/DDL |
/label sig/DDL |
Integrity check: |
Please edit this comment to complete the following informationBug1. Root Cause Analysis (RCA)This bug only affects the TiDB cluster which config has If 2. Symptom
3. Minimal steps to reproduce the bug (optional)4. Solution (optional)
5. W/A (Workaround)Uses 6. Affected versions[v3.0.14:v3.0.18], 7. Fixed versionsv3.0.19 |
Please edit this comment to complete the following informationBugNote: Make Sure that 'component', and 'severity' labels are added 1. Root Cause Analysis (RCA)This bug only affects the TiDB cluster which config has enable-table-lock = true, indicates the enable the table lock feature. If tidb-server was been kill -9 (such as OOM that killed by the system), the killed tidb-server will have no change to release the held table lock, so those table lock will not been released unless the user uses admin cleanup table lock [table_name] statement to force clean table lock. 2. SymptomLock table statement execute failed. 3. All Trigger Conditionssee in issue body 4. Workaround (optional)Uses admin cleanup table lock [table_name] statement to force release table lock. 5. Affected versions[v3.0.14:v3.0.18], 6. Fixed versionsv3.0.19 |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
tidb config
tt
was lock in WRITE LOCAL by server2. What did you expect to see? (Required)
TiDB should clean table lock if restart on OOM
3. What did you see instead (Required)
success to lock table
4. What is your TiDB version? (Required)
3.0.14
The text was updated successfully, but these errors were encountered: