-
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
VReplication: Defer Secondary Index Creation #11700
Conversation
Signed-off-by: Matt Lord <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Signed-off-by: Matt Lord <[email protected]>
be4d2ab
to
0eb1038
Compare
Signed-off-by: Matt Lord <[email protected]>
0eb1038
to
4570dd6
Compare
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
89a1bca
to
e587cc0
Compare
Signed-off-by: Matt Lord <[email protected]>
29321d3
to
69a58fb
Compare
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
bd2ab7d
to
2ec80d8
Compare
Signed-off-by: Matt Lord <[email protected]>
2ec80d8
to
1061004
Compare
Signed-off-by: Matt Lord <[email protected]>
f042657
to
4f44187
Compare
Signed-off-by: Matt Lord <[email protected]>
4f44187
to
3ec5a4a
Compare
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.
Functionality looks good. Nice work!
- I guess you have manually tested the full flow for this feature. But maybe we should add a couple of secondary indexes to one of the e2e tables so that the complete flow is tested as part of the e2e tests
- Can we also log the start/end of the post-copy alters to the vreplication_log table for keeping track of how long it takes?
- The PhaseTimings stat for copy phase is now going to include time for the alter. Should we also record PhaseTimings for the post-copy alter, so that we can differentiate this from the copy insert bandwidth?
Signed-off-by: Matt Lord <[email protected]>
Thanks for the great suggestions, @rohit-nayak-ps! I believe that I addressed all of them here: 5879ccc Adding secondary indexes to the e2e tables and enabling |
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Other fixes and minor improvements Signed-off-by: Matt Lord <[email protected]>
Otherwise the ALTER gets KILLed when the copy phase ends Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[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.
Nice work! Should significantly speed up a lot of production workflows :-)
Description
In this PR we add a new experimental
--defer-secondary-keys
flag for theMoveTables
,Reshard
, andMigrate
vtctl
client commands. When this flag is specified the target table has all secondary indexes removed from its schema prior to copying rows from the source and the indexes are re-added to the schema at the end of the copy phase.For the WHY, please see the feature request.
Manual Test and Demonstration:
Click here for details
Final results:
Related Issue(s)
Checklist