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

[wip,dnr] *: introduce decommissioning bit #49850

Closed

Conversation

irfansharif
Copy link
Contributor

Don't look, running CI.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz knz added this to In progress in DB Server & Security Jun 4, 2020
andreimatei and others added 4 commits June 11, 2020 04:20
Fixes cockroachdb#38308

Updates to the liveness records are done as CPuts. Before this patch,
the CPuts' expected value was the re-marshaled proto with the previous
version. As cockroachdb#38308 explains, that's a bad practice since it prevents the
proto's encoding to change in any way (e.g. fields can't be removed).
Instead, this patch moves to keeping track of the raw bytes that have
been read from the DB, besides the unmarshalled liveness protos. The raw
bytes are used as the expected values.

Release note: None
- [x] SetDraining absorbs from existing liveness into current proto.
- [x] SetDecommissioning absorbs from existing liveness into current proto.
- [x] Heartbeat absorbs from existing liveness into current proto.
- [x] IncrementEpoch absorbs from existing liveness into current proto.
@irfansharif irfansharif force-pushed the 200529.decommissioning-state branch 2 times, most recently from 3d0c363 to fdde6a0 Compare June 16, 2020 05:48
Release note (<category, see below>): <what> <show> <why>
@irfansharif
Copy link
Contributor Author

Cleaned up in #50329.

DB Server & Security automation moved this from In progress to Done 20.2 Jun 17, 2020
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.

None yet

3 participants