-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
LOCK TABLE T1 write; does not raise error or warning #28967
Comments
I took a look into this today. It might be that TiDB needs to permit this syntax to work with restores from mysqldump, but it should be possible to at least return a warning when |
/assign |
The lock/unlock table feature is implemented by #10343 which is controled by |
Yes, a warning is much better than noop. |
Do we need to adjust the severity to moderate? @morgo @Defined2014 |
By triage definition it is critical: TiDB is implying that it is locking tables while giving no feedback to users. This has a high chance of leading to data corruption. |
Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
This should return an error if not possible:
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: