-
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
vtorc
: improve handling of partial cell topo results
#17718
base: main
Are you sure you want to change the base?
vtorc
: improve handling of partial cell topo results
#17718
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
|
vtorc
: improve handling of partial topo resultsvtorc
: improve handling of partial cell topo results
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17718 +/- ##
==========================================
+ Coverage 67.79% 67.97% +0.18%
==========================================
Files 1587 1586 -1
Lines 255829 255212 -617
==========================================
+ Hits 173427 173470 +43
+ Misses 82402 81742 -660 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Tim Vaillancourt <[email protected]>
bb5e29c
to
b3936d2
Compare
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
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.
Rest looks good to me!
if len(failedCells) > 1 { | ||
slices.Sort(failedCells) | ||
} |
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.
Is this required?
Description
This PR improves the safety of
getAllTablets
ingo/vt/vtorc/logic/tablet_discovery.go
, which is used to get all tablet records from all cellsThe new logic returns the tablets from
getAllTablets(...)
in a per-cell map (asmap[string][]*topo.TabletInfo
) to ensure that only the cells that responded are operated on. A list of failed cells is also returned as[]string
This avoids tablets from being forgotten when one more cells fail, because before this PR the SQL query to get aliases to forget in
refreshTablets(...)
does not consider cells that never responded. This bug was introduced by #17388Related Issue(s)
Closes #17719
Checklist
Deployment Notes