-
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
reduce NOWAIT usage to tables with unique keys for foreign key plans #14772
Conversation
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
@harshit-gangal Would you mind extending the PR description to explain why we want to use |
updated the description. |
Signed-off-by: Harshit Gangal <[email protected]>
38718be
to
7ade3ca
Compare
Signed-off-by: Harshit Gangal <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you run the foreign key fuzzer for a longer duration locally to make sure this doesn't cause any correctness issues?
Yes I did :) |
…(#14772) Signed-off-by: Eduardo J. Ortega U. <[email protected]>
Description
This PR limits the usage of
NOWAIT
to tables having unique key columns.NOWAIT
leads to an error when acquiring the required index lock and it cannot be granted immediately. This leads to the failure of DML execution for foreign key cases.This is only required when the table has
unique keys
. When a table hasunique keys
MySQL does not take gap locks resulting in the issue described in #14532Related Issue(s)
Checklist
Deployment Notes