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
How does gh-ost guarantee no race between chunk copying & binlog processing #1113
Comments
|
migrating data from origin table to ghost table uses insert-select statement, like this the sql is executed atomic. so no sql is executed between 2-5 Best, |
|
@wangzhanbing Thanks for your reply! But I still have some questions about the ordering. According to Lines 1267 to 1293 in 8f361f6
applyEventsQueue takes precedence over copyRowsQueue, so the update (foo, 2) could actually be processed earlier through the binlog applier, and then the problem will be as described by @wangzhe711.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi folks,
Thank you all for writing this awesome tool! There's one scenario I don't quite understand. How do we avoid following situation:
The issue of this scenario is that after 5), the row has incorrect value, and it's not fixable by future binlog entries (because it won't match the update query condition)
Best,
Zhe
The text was updated successfully, but these errors were encountered: