-
Notifications
You must be signed in to change notification settings - Fork 2.3k
VDiff: Handle read only error #18999
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?
Conversation
Signed-off-by: twthorn <[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
|
|
📝 Documentation updates detected! New suggestion: Add v24.0.0 changelog entry for VDiff reparent error handling improvement |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18999 +/- ##
=======================================
Coverage 69.82% 69.82%
=======================================
Files 1610 1610
Lines 215303 215309 +6
=======================================
+ Hits 150328 150341 +13
+ Misses 64975 64968 -7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| log.Infof("%s vdiff %s", action, ct.uuid) | ||
| if err := ct.start(ctx, dbClient); err != nil { | ||
| if isReadOnlyError(err) { | ||
| log.Warningf("VDiff %s stopped due to tablet becoming read-only, will retry on new primary", ct.uuid) |
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.
timvaillancourt
left a comment
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.
@twthorn thanks, this LGTM 👍
Description
This error happens during VDiff and reparents, so we should catch it not fail to client/command status.
Related Issue(s)
Slack context
Checklist
Deployment Notes
AI Disclosure