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: misc fixes after excise cluster setting addition #111678

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

itsbilal
Copy link
Contributor

@itsbilal itsbilal commented Oct 3, 2023

This change addresses some follow-up code review points from #111437. One of these was to update a cluster setting's description to better reflect its interaction with another cluster setting, and another is to address one missing guard in cluster versions when ratcheting forward.

Epic: none

Release note: None

@itsbilal itsbilal requested a review from jbowens October 3, 2023 21:02
@itsbilal itsbilal requested review from a team as code owners October 3, 2023 21:02
@blathers-crl
Copy link

blathers-crl bot commented Oct 3, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@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: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @itsbilal and @jbowens)


pkg/kv/kvserver/store_snapshot.go line 507 at r1 (raw file):

	keyRanges := rditer.MakeReplicatedKeySpans(header.State.Desc)

	// NB: V23_2_StmtDiagForPlanGist is one after V23_2_PebbleFormatVirtualSSTables

This is ugly.. If I understand correctly, we should have reserved 2 versions?

I would add a const V23_2_PebbleFormatVirtualSSTablesDone (or whatever) in clusterversion and make it equal to V23_2_PebbleFormatVirtualSSTables + 1 and explain in the comment why it's defined like this (we didn't want to shift the keys). Though I don't think shifting the 23_2 keys should be a problem. Or if we can define it at the end, that'd be better too.

Copy link
Contributor Author

@itsbilal itsbilal 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: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @jbowens)


pkg/kv/kvserver/store_snapshot.go line 507 at r1 (raw file):

Previously, RaduBerinde wrote…

This is ugly.. If I understand correctly, we should have reserved 2 versions?

I would add a const V23_2_PebbleFormatVirtualSSTablesDone (or whatever) in clusterversion and make it equal to V23_2_PebbleFormatVirtualSSTables + 1 and explain in the comment why it's defined like this (we didn't want to shift the keys). Though I don't think shifting the 23_2 keys should be a problem. Or if we can define it at the end, that'd be better too.

I could define it at the end but I prefer the alias approach a little more, so that's what I did. @jbowens what do you think?

@itsbilal itsbilal force-pushed the cluster-setting-excise-fixes branch 2 times, most recently from 7e139fb to bb2b7b2 Compare October 4, 2023 16:22
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.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @itsbilal and @RaduBerinde)


pkg/kv/kvserver/store_snapshot.go line 507 at r1 (raw file):

Previously, itsbilal (Bilal Akhtar) wrote…

I could define it at the end but I prefer the alias approach a little more, so that's what I did. @jbowens what do you think?

I do think a separate cluster version is preferable so that each new cluster version is only enabling 1 new piece of functionality.

@itsbilal itsbilal force-pushed the cluster-setting-excise-fixes branch from bb2b7b2 to 0603319 Compare October 4, 2023 17:37
Copy link
Contributor Author

@itsbilal itsbilal 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: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @jbowens and @RaduBerinde)


pkg/kv/kvserver/store_snapshot.go line 507 at r1 (raw file):

Previously, jbowens (Jackson Owens) wrote…

I do think a separate cluster version is preferable so that each new cluster version is only enabling 1 new piece of functionality.

Done.

This change addresses some follow-up code review points from cockroachdb#111437.
One of these was to update a cluster setting's description
to better reflect its interaction with another cluster setting,
and another is to address one missing guard in cluster versions
when ratcheting forward.

Epic: none

Release note: None
@itsbilal itsbilal force-pushed the cluster-setting-excise-fixes branch from 0603319 to 09a57e6 Compare October 4, 2023 18:06
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 3 files at r1, 2 of 3 files at r2, 3 of 3 files at r4, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @itsbilal)

@itsbilal
Copy link
Contributor Author

itsbilal commented Oct 4, 2023

TFTR!

bors r=jbowens

@craig
Copy link
Contributor

craig bot commented Oct 4, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Oct 4, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Oct 4, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Oct 4, 2023

Build succeeded:

@craig craig bot merged commit 303ac11 into cockroachdb:master Oct 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.

4 participants