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: encode engine keys passed as checkpoint bounds #100940

Merged
merged 1 commit into from
Apr 10, 2023

Conversation

jbowens
Copy link
Collaborator

@jbowens jbowens commented Apr 7, 2023

Previously, CreateCheckpoint would restrict a checkpoint by passing invalid keys to Pebble. These keys were unencoded roachpb.Keys without a version length last byte.

The unit test is skipped, because it reveals another ununderstood problem.

Close #100919.
Informs #100935.
Epic: none
Release note: None

@jbowens jbowens requested a review from a team as a code owner April 7, 2023 18:23
@jbowens jbowens requested a review from sumeerbhola April 7, 2023 18:23
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

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

Previously, CreateCheckpoint would restrict a checkpoint by passing invalid
keys to Pebble. This keys were unencoded `roachpb.Key`s without a version
length last byte.

The unit test is skipped, because it reveals another ununderstood problem.

Close cockroachdb#100919.
Informs cockroachdb#100935.
Epic: none
Release note: None
@jbowens jbowens force-pushed the checkpoint-enginekey branch from 1776c03 to c61b6f5 Compare April 7, 2023 20:37
@jbowens jbowens added the backport-23.1.x Flags PRs that need to be backported to 23.1 label Apr 7, 2023
@jbowens
Copy link
Collaborator Author

jbowens commented Apr 10, 2023

TFTR!

bors r=sumeerbhola

@craig
Copy link
Contributor

craig bot commented Apr 10, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

storage: checkpoint bounds unencoded roachpb.Key
3 participants