-
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
GetTablets from Vtctldclient #15596
GetTablets from Vtctldclient #15596
Conversation
Signed-off-by: notfelineit <[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: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
_, err := c.Vtctld.RunHealthCheck(ctx, &vtctldatapb.RunHealthCheckRequest{ | ||
TabletAlias: tablet.Alias, | ||
}) | ||
if err != nil { |
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.
Dropping the original comment from @ajm188 here:
just dropping a placeholder so i don't forget about the UNKNOWN vs NOT_SERVING distinction here
Signed-off-by: notfelineit <[email protected]>
{ | ||
"field": "RunHealthCheckResults", | ||
"type": "map[string]error", | ||
"value": "\"other1-0000000100\": nil," |
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 was key to getting TestGetSchemas
to pass because we now use RunHealthCheck
to determine the serving state of a tablet.
Pausing here for today. There are a few more tests to update:
|
This is blocked on #15603 a more reliable healthcheck to indicate tablet is serving/not-serving/unknown |
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 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. |
I'll have to reopen this once the new healthcheck is implemented 😅 |
Description
A newer version of #14342
Addresses #14152 by fetching tablets from Vtctld instead of a single VTGate instance.
State
(serving state) will be supplemented by results fromVtctld.RunHealthCheck
.Related Issue(s)
#14152
Checklist
Deployment Notes