-
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: Properly support cancel and delete for multi-tenant MoveTables #16906
Merged
deepthi
merged 34 commits into
vitessio:main
from
planetscale:multi_tenant_movetables_cleanup
Oct 23, 2024
Merged
Changes from 28 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
d1a7412
Properly support cancel for multi-tenant movetables
mattlord 435ff92
Minor changes from review
mattlord 6064bad
Cleanup errors
mattlord d7e86ec
Move work to DeleteTenantData tabletmanager RPC
mattlord 68d28b9
Start working on tests
mattlord 8a20834
Add unit test
mattlord db2d963
Add to unit tests
mattlord c9f57eb
Merge remote-tracking branch 'origin/main' into multi_tenant_movetabl…
mattlord fcb5c6d
Add batch size client flag for cancel and delete
mattlord 4513e22
Add new flag to cli test
mattlord 59aeb3d
Changes from self review
mattlord 77e0e13
Move more work back to workflow server and make RPC more generic
mattlord 19135ec
Add vtctld size unit test cases and fix logic
mattlord 4fcd54d
Remove unintentional changes
mattlord 565b686
Return progress upon error
mattlord eda4337
Remove context deadline progress handling
mattlord 5435503
Changes from self review
mattlord 9be4ae8
Improve timeout error client message
mattlord e7374c8
Address review comments
mattlord a993ce2
Address review comment part II
mattlord de44c6b
Improve progress log msg
mattlord 6a4c79e
Unify delete/cancel cleanup order
mattlord 4a4c17e
Merge remote-tracking branch 'origin/main' into multi_tenant_movetabl…
mattlord 76131b8
Adjust log msgs since function is not multi-tenant specific
mattlord 76350bd
Make progress logging more intelligent/dynamic
mattlord 5c89bc6
Move workflow locks up one level and hold it during larger operation
mattlord 2ea5e5b
We don't need to lock the keyspace while deleting tenant rows
mattlord aa567d7
Standardize lock workflow errors
mattlord 18db131
Merge remote-tracking branch 'origin/main' into multi_tenant_movetabl…
mattlord da401a5
Address review comments
mattlord ebec349
Fix unit tests after merging in main
mattlord f31adc9
Implement my TODO
mattlord 399552e
Nitty var name change
mattlord 87d4f68
Comment change from self review of review feedback commits
mattlord File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should this description not be consistent with that given for the same flag in moveables.go for the Cancel sub-command?
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 catch! However, this is a bit of an exception in that the context is different for
MoveTables cancel
andWorkflow delete
. It was intentional:But I'm good tweaking them if you have any suggestions or preference?
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.
I don't understand how they are different. As long as they are both consistent, either way of wording the flag help is fine.
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.
On second thought, this is somewhat misleading
It makes it sound as if there's some general capability to delete a subset of data from migrated tables. So the other version is preferable.
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.
You need them to be exactly the same? That would be a little odd as
MoveTables cancel
is obviously forMoveTables
. What about:The only difference being we note that it's for
a multi-tenant MoveTables workflow
in theWorkflow delete
help output.And I just realized a misspelling in there
mult-tenant
that I corrected above. :)