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: never set a too-old format version #97066

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

RaduBerinde
Copy link
Member

@RaduBerinde RaduBerinde commented Feb 13, 2023

This change asserts that we never set a pebble FormatVersion that is
older than the minimum supported by our code.

Benchmarks that set a lower value are updated (and
BenchmarkTimeBoundIterate is reenabled). These benchmarks can fail
when the code exercises a feature like range keys that is not
supported by the older format.

Fixes #97061

Release note: None
Epic: none

@cockroach-teamcity
Copy link
Member

This change is Reviewable

This change asserts that we never set a pebble FormatVersion that is
older than the one minimum supported by our code.

Benchmarks that set a lower value are updated (and
BenchmarkTimeBoundIterate is reenabled). These benchmarks can fail
when the code exercises a feature like range keys that is not
supported by the older format.

Fixes cockroachdb#97061

Release note: None
Epic: none
@RaduBerinde RaduBerinde force-pushed the fix-old-format-version branch from 98ae2db to 9d24366 Compare February 13, 2023 20:25
@RaduBerinde RaduBerinde marked this pull request as ready for review February 13, 2023 21:16
@RaduBerinde RaduBerinde requested a review from a team as a code owner February 13, 2023 21:16
@RaduBerinde RaduBerinde requested a review from a team February 13, 2023 21:16
@RaduBerinde RaduBerinde requested a review from a team as a code owner February 13, 2023 21:16
Copy link
Collaborator

@nicktrav nicktrav 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 9 of 9 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @bananabrick and @sumeerbhola)

@RaduBerinde
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 14, 2023

Build succeeded:

@craig craig bot merged commit 3b9d8cb into cockroachdb:master Feb 14, 2023
@RaduBerinde RaduBerinde deleted the fix-old-format-version branch February 14, 2023 17:13
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: some benchmarks fail in CI with crash in newPebbleIterator
3 participants