Skip to content
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

roachpb: make AdminChangeReplicasRequest.ExpDesc non-nullable #38843

Conversation

ajwerner
Copy link
Contributor

@ajwerner ajwerner commented Jul 12, 2019

Prior to 19.1 AdminChangeReplicas did not take an expected range descriptor
value which allowed for races with other changes to the range descriptor. For
backwards compatibility the expectation was left as an optional field. This
commit completes the migration and makes ExpDesc a required, non-nullable
field. Clients which supply a zero value ExpDesc will now receive an error.

Relates to #36025.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Prior to 19.1 AdminChangeReplicas did not take an expected range descriptor
value which allowed for races with other changes to the range descriptor. For
backwards compatibility the expectation was left as an optional field. This
commit completes the migration and makes ExpDesc a required, non-nullable
field. Clients which supply a zero value ExpDesc will now receive an error.

Release note: None
@ajwerner ajwerner closed this Jul 12, 2019
@ajwerner ajwerner force-pushed the ajwerner/make-exp-desc-required-in-change-replicas branch from 196abc9 to 0a33dca Compare July 12, 2019 15:02
@ajwerner ajwerner deleted the ajwerner/make-exp-desc-required-in-change-replicas branch July 12, 2019 15:12
@ajwerner ajwerner restored the ajwerner/make-exp-desc-required-in-change-replicas branch July 12, 2019 15:12
@ajwerner ajwerner reopened this Jul 12, 2019
@ajwerner ajwerner requested a review from nvanbenschoten July 12, 2019 16:50
@ajwerner ajwerner marked this pull request as ready for review July 12, 2019 16:50
@ajwerner ajwerner requested a review from a team July 12, 2019 16:50
Copy link
Member

@nvanbenschoten nvanbenschoten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 7 of 7 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@ajwerner
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Jul 12, 2019
38843: roachpb: make AdminChangeReplicasRequest.ExpDesc non-nullable r=ajwerner a=ajwerner

Prior to 19.1 AdminChangeReplicas did not take an expected range descriptor
value which allowed for races with other changes to the range descriptor. For
backwards compatibility the expectation was left as an optional field. This
commit completes the migration and makes ExpDesc a required, non-nullable
field. Clients which supply a zero value ExpDesc will now receive an error.

Relates to #36025.

Release note: None

Co-authored-by: Andrew Werner <[email protected]>
@craig
Copy link
Contributor

craig bot commented Jul 12, 2019

Build succeeded

@craig craig bot merged commit 0a33dca into cockroachdb:master Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants