Skip to content
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

MCOL-5603 Online alter can break data consistency #3021

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

FooBarrior
Copy link

Propagate the TL lock to TL_READ_NO_INSERT, blocking any concurrent writes until the end of a copy stage.

After that, this lock will be unlocked, allowing a window to write into a table before MDL is upgraded to exclusive (see online_alter_read_from_binlog call and the "alter_table_online_before_lock" debug syncpoint). This window will be covered by the second replication iteration after the lock upgrade

Propagate the TL lock to TL_READ_NO_INSERT, blocking any concurrent writes until the end of a copy stage.

After that, this lock will be unlocked, allowing a window to write into a table before MDL is upgraded to exclusive (see online_alter_read_from_binlog call and the "alter_table_online_before_lock" debug syncpoint). This window will be covered by the second replication iteration after the lock upgrade
@FooBarrior
Copy link
Author

The CI failure looks suspicious, I hope someone can rerun the failing nodes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants