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

cockroachkvs: minor updates #4264

Merged

Conversation

RaduBerinde
Copy link
Member

@RaduBerinde RaduBerinde commented Jan 16, 2025

Bringing in a few comments from the CRDB code.

Informs 139068

Bringing in a few comments from the CRDB code.
@RaduBerinde RaduBerinde requested a review from jbowens January 16, 2025 17:17
@RaduBerinde RaduBerinde requested a review from a team as a code owner January 16, 2025 17:17
@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:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @RaduBerinde)


cockroachkvs/cockroachkvs.go line 235 at r1 (raw file):

	if versionLen > len(key) {
		panic(errors.AssertionFailedf("invalid version length"))
	}

I'm forgetting, did we remove this assertion from the cockroach repo and do you remember why?

Copy link
Member Author

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @jbowens)


cockroachkvs/cockroachkvs.go line 235 at r1 (raw file):

Previously, jbowens (Jackson Owens) wrote…

I'm forgetting, did we remove this assertion from the cockroach repo and do you remember why?

Yeah, it's not there. Maybe some concern with overhead due to the panic call. In practice we will crash right after in this case anyway so I don't think it is too useful (and we check it above in invariants mode).

@RaduBerinde
Copy link
Member Author

CI ran into a TestWALFailoverRandomized flake (could not open manifest file "MANIFEST-000144" for DB "primary") but I couldn't reproduce.

@RaduBerinde RaduBerinde merged commit d2b08c8 into cockroachdb:master Jan 18, 2025
23 checks passed
@RaduBerinde RaduBerinde deleted the cockroachkvs-minor-updates branch January 18, 2025 02:14
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