-
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
Allow cross cell promotion in PRS #16461
Conversation
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Manan Gupta <[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
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16461 +/- ##
==========================================
- Coverage 68.65% 68.64% -0.01%
==========================================
Files 1551 1551
Lines 199468 199473 +5
==========================================
- Hits 136935 136920 -15
- Misses 62533 62553 +20 ☔ View full report in Codecov by Sentry. |
go/vt/vtctl/reparentutil/util.go
Outdated
@@ -102,7 +103,7 @@ func ElectNewPrimary( | |||
reasonsToInvalidate.WriteString(fmt.Sprintf("\n%v does not match the new primary alias provided", topoproto.TabletAliasString(tablet.Alias))) | |||
continue | |||
} | |||
case primaryCell != "" && tablet.Alias.Cell != primaryCell: | |||
case !allowCrossCellPromotion && primaryCell != "" && tablet.Alias.Cell != primaryCell: |
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.
This is the actual logic change in this PR. LGTM
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Description
As described in #16460, there is a need to allow cross cell promotions in PRS. This PR adds this functionality and adds the required tests to ensure it works as intended.
Related Issue(s)
Checklist
Deployment Notes