Change healthcheck to only reload specific keyspace shard tablets#17872
Merged
GuptaManan100 merged 10 commits intovitessio:mainfrom Mar 5, 2025
Merged
Conversation
Signed-off-by: Manan Gupta <manan@planetscale.com>
Contributor
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
|
deepthi
reviewed
Feb 26, 2025
Signed-off-by: Manan Gupta <manan@planetscale.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17872 +/- ##
==========================================
+ Coverage 67.45% 67.53% +0.07%
==========================================
Files 1594 1595 +1
Lines 259064 259701 +637
==========================================
+ Hits 174760 175377 +617
- Misses 84304 84324 +20 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
deepthi
reviewed
Feb 28, 2025
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
deepthi
approved these changes
Mar 4, 2025
shlomi-noach
approved these changes
Mar 5, 2025
| case <-ticker.C: | ||
| // Since we are going to load all the tablets, | ||
| // we can clear out the entire list for reloading | ||
| // specific keyspace shards. |
Contributor
Author
There was a problem hiding this comment.
Thank you for the review! 💕
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes the issue described in #17876. As the issue points out, we should only be loading tablets for the specific keyspace-shard that we don't have a primary for anymore.
This PR makes this change, by changing the load tablets trigger, to also store the keyspace shard information, and we use that to only load some of the tablets.
As part of this change, I also found that as part of the PR #17071 we introduced a couple of fields to hte
GetTabletsByCellOptionsbut they weren't being respected in theGetTabletsMapfunction. This PR fixes this too, and adds tests for all the topo functions touched. The implementation of a couple of them has also been changed to improve efficiency.Related Issue(s)
Checklist
Deployment Notes