-
Notifications
You must be signed in to change notification settings - Fork 2.3k
tabletmanager: remove v22 backwards-compatibility for vterrors migration
#18986
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
base: main
Are you sure you want to change the base?
tabletmanager: remove v22 backwards-compatibility for vterrors migration
#18986
Conversation
Signed-off-by: Tim Vaillancourt <[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: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
| CacheMillis int // optional, if defined then probe result will be cached, and future probes may use cached value | ||
| Port int // Specify if different than 3306; applies to all clusters | ||
| IgnoreTabletRPCErrors bool // Skip hosts where a metric cannot be retrieved due to tablet RPC errors | ||
| IgnoreDialTCPErrors bool // TODO: deprecate/replace with IgnoreTabletRPCErrors. |
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.
I plan to deprecate/replace IgnoreDialTCPErrors, because we're catching more than just dial errors (timeouts, cancels, etc)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18986 +/- ##
==========================================
+ Coverage 69.77% 69.80% +0.02%
==========================================
Files 1608 1610 +2
Lines 214908 215292 +384
==========================================
+ Hits 149953 150285 +332
- Misses 64955 65007 +52 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Tim Vaillancourt <[email protected]>
tabletmanager: remove backwards-compatibility for vterrors migrationtabletmanager: remove v22 backwards-compatibility for vterrors migration
Description
In v23 PR #18565,
tabletmanagerwas migrated to returningvterrors-style errorsTo make the change v22-backwards-compatible, both the old gRPC error codes and
vterrorscodes were supportedThis PR removes the backwards compatibility for v22, for v24. The throttler, which this PR impacts, uses the
.CheckThrottler(...)RPC on TMClient only, which uses the correctvterrors nowFinally, this adds a new MySQL throttler config field:
IgnoreTabletRPCErrors, to reflect that we are catching new error conditions, such as timeouts and cancellations. This is added to replaceIgnoreDialTCPErrorsin a future release. For now both are aliased to each othercc @shlomi-noach who reviewed the first phase of this error migration 🙇
Related Issue(s)
Resolves #18663
Checklist
Deployment Notes
AI Disclosure