-
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
Add --force Flag to Switch/ReverseTraffic #16529
Conversation
Signed-off-by: makinje <[email protected]>
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: makinje <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16529 +/- ##
==========================================
+ Coverage 68.69% 68.75% +0.05%
==========================================
Files 1547 1556 +9
Lines 198297 199712 +1415
==========================================
+ Hits 136228 137311 +1083
- Misses 62069 62401 +332 ☔ View full report in Codecov by Sentry. |
Hi @makinje16 ! Thank you for working on this! However, I'm afraid that this won't help for the main aspect of the feature request. The things we check in the pre-check function are things that we will again do during the actual switch and they would likely then fail there. We do them in a pre-check as they are things that will be done while traffic is paused so if we know they are likely to fail we don't incur that added latency and/or query errors (if query buffering is not enabled). What the original internal request was about — which led me to create the project feature request — was specifically about ignoring refresh tablet errors when doing the switch. If you're still interested in working on this, I'm happy to chat with you further about it in Slack etc. What you've done so far could indeed remain as part of it, but we'd also need to make at least some things non-fatal during the actual switch as well. Thanks again! |
@makinje16 given the comment from Matt, I would also like to understand your specific use case. It can be dangerous to skip pre-checks because you can get into a bad state. |
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
This PR was closed because it has been stale for 7 days with no activity. |
Description
This PR implements the feature request in #16528. Specifically, we introduce a
--force
flag to theSwitchTraffic
andReverseTraffic
vtctldclient commands. When supplied, the--force
flag will ignore all PreCondition checks when running either Switch or ReverseTraffic.Related Issue(s)
#16528
Checklist
Deployment Notes