-
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
VDiff: Make max diff duration upgrade/downgrade safe #14995
Merged
Merged
Conversation
This file contains 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
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: Matt Lord <mattalord@gmail.com>
373737c
to
f529a14
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14995 +/- ##
==========================================
+ Coverage 47.31% 47.34% +0.02%
==========================================
Files 1142 1142
Lines 239009 239018 +9
==========================================
+ Hits 113091 113166 +75
+ Misses 117327 117258 -69
- Partials 8591 8594 +3 ☔ View full report in Codecov by Sentry. |
ajm188
approved these changes
Jan 19, 2024
rohit-nayak-ps
approved these changes
Jan 19, 2024
frouioui
reviewed
Jan 19, 2024
frouioui
approved these changes
Jan 19, 2024
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
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
In v19 we added a new feature to support auto restarting the diff of a table periodically in #14786.
The proto field used for that is a
vttime.Duration
type. Because it ends up being a pointer in the proto message there is no ZeroValue in the server side (vtctld
) message when the client (vtctldclient
) sent an older version of theVDiffCreateRequest
proto message from a v18vtctldclient
binary and thus when we passed onreq.MaxDiffDuration.Seconds
to the tablets we got a nil pointer exception.This PR adds a server side nil check for this new field in the server's message and sets it to a pointer to the type's ZeroValue so that this is upgrade/downgrade safe.
Related Issue(s)
Checklist