-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
storage: misc fixes after excise cluster setting addition #111678
Conversation
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. |
695e58b
to
5dbc080
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 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) inclusterversion
and make it equal toV23_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?
7e139fb
to
bb2b7b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 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.
bb2b7b2
to
0603319
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 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
0603319
to
09a57e6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 3 files at r1, 2 of 3 files at r2, 3 of 3 files at r4, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @itsbilal)
TFTR! bors r=jbowens |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed (retrying...): |
Build succeeded: |
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