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: check for old store version upfront #96394

Merged
merged 2 commits into from
Feb 4, 2023

Conversation

RaduBerinde
Copy link
Member

storage: minor cleanup around MinVersionIsAtLeastTargetVersion

Removing this unused method from the Engine interface.

Release note: None

storage: check for old store version upfront

This change adds a check for old versions as soon as we open the min
version file, before opening the store. We currently check this at a
later time; in some cases, it is too late and there is potential for
corruption.

Release note: None

Fixes #89836

@RaduBerinde RaduBerinde requested review from a team as code owners February 1, 2023 23:11
@RaduBerinde RaduBerinde requested a review from itsbilal February 1, 2023 23:11
@cockroach-teamcity
Copy link
Member

This change is Reviewable

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:

thanks for doing this!

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

Removing this unused method from the Engine interface.

Release note: None
This change adds a check for old versions as soon as we open the min
version file, before opening the store. We currently check this at a
later time; in some cases, it is too late and there is potential for
corruption.

Release note: None

Fixes cockroachdb#89836
@RaduBerinde RaduBerinde force-pushed the min-ver-check-upfront branch from d52e7bf to 39c7443 Compare February 3, 2023 19:54
@RaduBerinde RaduBerinde requested a review from a team February 3, 2023 19:54
@RaduBerinde
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 4, 2023

Build succeeded:

@craig craig bot merged commit 8e24570 into cockroachdb:master Feb 4, 2023
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.

storage: prevent opening unsupported database engine
3 participants