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

storage: write min version file with checkpoint #97410

Merged
merged 2 commits into from
Feb 22, 2023

Conversation

RaduBerinde
Copy link
Member

@RaduBerinde RaduBerinde commented Feb 21, 2023

storage: better error for missing min version file

We require the min version filename to open a store. If it doesn't
exist, we assume the store doesn't exist which can lead to a confusing
message if just the min version file is missing. This commit makes
this message more useful.

Informs #97337

Release note: none
Epic: none

storage: write min version file with checkpoint

We now write out the min version file with checkpoints generated
through the storage layer. This allows checkpoints to be opened with
the cockroach storage layer (not just with the low level pebble tool).

Fixes #97337

Release note: None
Epic: none

We require the min version filename to open a store. If it doesn't
exist, we assume the store doesn't exist which can lead to a confusing
message if just the min version file is missing. This commit makes
this message more useful.

Informs cockroachdb#97337

Release note: none
Epic: none
@RaduBerinde RaduBerinde requested a review from a team as a code owner February 21, 2023 20:09
@RaduBerinde RaduBerinde requested a review from jbowens February 21, 2023 20:09
@cockroach-teamcity
Copy link
Member

This change is Reviewable

We now write out the min version file with checkpoints generated
through the storage layer. This allows checkpoints to be opened with
the cockroach storage layer (not just with the low level pebble tool).

Informs cockroachdb#97337

Release note: None
Epic: none
@RaduBerinde
Copy link
Member Author

Confirmed that the inconsistency roachtest passes with this.

Copy link
Collaborator

@jbowens jbowens left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @RaduBerinde)

@RaduBerinde
Copy link
Member Author

TFTR! CI failure looks like an unrelated flake.

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 22, 2023

Build succeeded:

@craig craig bot merged commit 2431b4b into cockroachdb:master Feb 22, 2023
@RaduBerinde RaduBerinde deleted the better-msg branch February 22, 2023 19:26
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.

roachtest: inconsistency failed
3 participants