-
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
ReverseTraffic bug fix: allow reversing reads when only reads have been switched #16998
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
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16998 +/- ##
==========================================
- Coverage 67.04% 67.03% -0.01%
==========================================
Files 1571 1571
Lines 251677 251683 +6
==========================================
- Hits 168729 168723 -6
- Misses 82948 82960 +12 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Rohit Nayak <[email protected]>
…lidate Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Rohit Nayak <[email protected]>
c8cc91e
to
c32c7e0
Compare
The alternate fix turned out to touch a few code paths, so the aim is to try to get #16920 into RC2. |
Description
There is a regression from
vtctl
tovtctld
where, if only read traffic has been switched for a VReplication Workflow, attempting to reverse this switch errors out. If write traffic has also been switched it works fine. Reported here: #16918.The root cause is that, for a workflow which has been (partially) switched the code deduces the state from the reverse workflow, which is not created unless writes are switched.
Due to paucity of time, aiming to get this into the v21 release we start with a hackier interim fix in this PR.
This will be followed by a refactored implementation from: #16920 which has some significant backports and can bake in v22.
This has been present from day 0, so we backport to all supported versions: patches for the older releases are expected in the next couple weeks.
Related Issue(s)
#16918
Checklist
Deployment Notes