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

cherrypick-1.1: storage: Write HardState atomically with committing splits #20939

Merged
merged 1 commit into from
Dec 20, 2017

Conversation

bdarnell
Copy link
Contributor

Prior to this change, an ill-timed crash (between applying the raft
command and calling splitPostApply) would leave the replica in a
persistently broken state (no HardState).

Found via jepsen.

Fixes #20629
Fixes #20494

Release note (bugfix): Fixed a replica corruption that could occur if
a process crashed in the middle of a range split.

@bdarnell bdarnell requested review from a team December 20, 2017 18:29
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Prior to this change, an ill-timed crash (between applying the raft
command and calling splitPostApply) would leave the replica in a
persistently broken state (no HardState).

Found via jepsen.

Fixes cockroachdb#20629
Fixes cockroachdb#20494

Release note (bugfix): Fixed a replica corruption that could occur if
a process crashed in the middle of a range split.
@bdarnell bdarnell merged commit 02bdfdf into cockroachdb:release-1.1 Dec 20, 2017
@bdarnell bdarnell deleted the cherrypick-split-atomic branch December 20, 2017 18:59
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