vtorc: use errgroup in keyspace/shard discovery#17857
Merged
GuptaManan100 merged 3 commits intovitessio:mainfrom Mar 16, 2025
Merged
vtorc: use errgroup in keyspace/shard discovery#17857GuptaManan100 merged 3 commits intovitessio:mainfrom
vtorc: use errgroup in keyspace/shard discovery#17857GuptaManan100 merged 3 commits intovitessio:mainfrom
Conversation
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.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
|
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17857 +/- ##
==========================================
+ Coverage 67.44% 67.49% +0.04%
==========================================
Files 1592 1593 +1
Lines 258205 258881 +676
==========================================
+ Hits 174151 174720 +569
- Misses 84054 84161 +107 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
deepthi
approved these changes
Feb 28, 2025
5 tasks
GuptaManan100
approved these changes
Mar 16, 2025
timvaillancourt
added a commit
to slackhq/vitess
that referenced
this pull request
Mar 16, 2025
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
This was referenced Mar 16, 2025
timvaillancourt
added a commit
to slackhq/vitess
that referenced
this pull request
Mar 17, 2025
* `vtorc`: remove duplicate instance read from backend (vitessio#17834) Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * `vtorc`: add index for `inst.ReadInstanceClusterAttributes` table scan (vitessio#17866) Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * Add stats for shards watched by VTOrc, purge stale shards (vitessio#17815) Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * Remove unused code in discovery queue creation (vitessio#17515) Signed-off-by: Manan Gupta <manan@planetscale.com> * `vtorc`: cleanup discover queue, add concurrency flag (vitessio#17825) Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * make compat with v21 Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * `vtorc`: use `errgroup` in keyspace/shard discovery (vitessio#17857) Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * missing `sync` import Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * `vtorc`: skip unnecessary backend read in `logic.LockShard(...)` (vitessio#17900) Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * `vtorc`: add tablets watched stats (vitessio#17911) Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * `vtorc`: add stats for discovery workers (vitessio#17937) Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> --------- Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> Signed-off-by: Manan Gupta <manan@planetscale.com> Co-authored-by: Manan Gupta <35839558+GuptaManan100@users.noreply.github.com>
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 moves to using an
errgroupin VTOrc'slogic.RefreshAllKeyspacesAndShards()in order for errors to passed up to the caller, also it feels a bit cleanerRelated Issue(s)
#17330
Checklist
Deployment Notes