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

kvserver: mark in-flight storage checkpoints #99119

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

pav-kv
Copy link
Collaborator

@pav-kv pav-kv commented Mar 21, 2023

This commit makes it so that the consistency checker checkpoints are first created in a "_pending" folder, and only after completion are atomically renamed to the intended directory name. This is to help distinguish valid checkpoints from the ones that weren't finalized (for example, when the node crashed in the meantime).

Part of #81819
Epic: none
Release note (ops change): checkpoint directories (that can be created in the rare event of range inconsistency) are now clearly indicated as pending until they are fully populated. This is to help operators to distinguish valid checkpoints from corrupted ones.

This commit makes it so that the consistency checker checkpoints are first
created in a "_pending" folder, and only after completion are atomically
renamed to the intended directory name. This is to help distinguish valid
checkpoints from the ones that weren't finalized (for example, when the node
crashed in the meantime).

Part of cockroachdb#81819
Epic: none
Release note (ops change): checkpoint directories (that can be created in the
rare event of range inconsistency) are now clearly indicated as pending until
they are fully populated. This is to help operators to distinguish valid
checkpoints from corrupted ones.
@pav-kv pav-kv requested review from erikgrinaker, tbg and a team March 21, 2023 14:14
@pav-kv pav-kv requested a review from a team as a code owner March 21, 2023 14:14
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@pav-kv
Copy link
Collaborator Author

pav-kv commented Mar 21, 2023

This PR makes the test failures in #81819 more obvious. After #99114 these failures no longer occur.

@pav-kv
Copy link
Collaborator Author

pav-kv commented Mar 21, 2023

bors r=tbg

@craig
Copy link
Contributor

craig bot commented Mar 21, 2023

Build succeeded:

@craig craig bot merged commit 77029b1 into cockroachdb:master Mar 21, 2023
@pav-kv pav-kv deleted the indicate-inflight-checkpoints branch March 21, 2023 23:30
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