-
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
Correctly initialize the TabletType stats #6989
Conversation
Converted to a draft because I noticed in testing that a tablet can still have the wrong |
d04f58f
to
78481aa
Compare
Fixed to set the initial stat after checkMastership runs |
@@ -283,6 +283,7 @@ func (tm *TabletManager) Start(tablet *topodatapb.Tablet, healthCheckInterval ti | |||
|
|||
// The following initializations don't need to be done | |||
// in any specific order. | |||
statsTabletType.Set(topoproto.TabletTypeLString(tm.tmState.tablet.Type)) |
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.
Won't it be better to do this inside exportStats
? Similar to how we are setting keyspace and shard stats.
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.
That makes a lot of sense to me. Updated
Fixes vitessio#6988 Signed-off-by: David Weitzman <[email protected]>
78481aa
to
060bc8e
Compare
We should backport this to 7.0 and 8.0. Also |
Fixes #6988
Signed-off-by: David Weitzman [email protected]