-
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: Relax restrictions on Cancel and ReverseTraffic when writes not involved #17128
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
|
Signed-off-by: Matt Lord <mattalord@gmail.com>
5f6f7b0
to
40f8c04
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
40f8c04
to
252b6c2
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
c1417c5
to
20da402
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
20da402
to
d8ad0ba
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17128 +/- ##
==========================================
+ Coverage 67.42% 67.44% +0.01%
==========================================
Files 1569 1569
Lines 252120 252127 +7
==========================================
+ Hits 169997 170042 +45
+ Misses 82123 82085 -38 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Should be zero, but was [] Signed-off-by: Matt Lord <mattalord@gmail.com>
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.
Good tests!
Description
This PR makes two related ease-of-use improvements to VReplication workflows and in particular multi-tenant
MoveTables
workflows:Cancel
/Delete
a workflow if you've only switched read traffic (tablet types ofreplica
,rdonly
). Previously you would have to first do aReverseTraffic
step before you couldCancel
/Delete
the workflow. This was generally a minor pain, but it was a larger pain for multi-tenantMoveTables
workflows as you could not reverse traffic at all for them. So if you had switched reads you were stuck and had to perform manual work to get things in the desired state.ReverseTraffic
for reads only in a multi-tenant workflow. This allows you to revert that partial switch without having to again perform some manual work to get things in the desired state.Related Issue(s)
Checklist