-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
release-23.1: spanconfig: integrate SpanConfigBounds with the Store and KVSubscriber #100013
Merged
arulajmani
merged 4 commits into
release-23.1
from
blathers/backport-release-23.1-99699
Mar 30, 2023
Merged
release-23.1: spanconfig: integrate SpanConfigBounds with the Store and KVSubscriber #100013
arulajmani
merged 4 commits into
release-23.1
from
blathers/backport-release-23.1-99699
Mar 30, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Previously, when constructing ValueBounds for any Int32 fields, we would check if the ConstraintBounds field was non-null, which wasn't intentional. This meant that we wouldn't clamp fields like GC TTL, number of voters, and number of replicas if ConstraintBounds wasn't set. Epic: none Release note: None
This patch allows us to declare keys/spans as datadriven input for datadriven tests in the spanconfig package. We'll make use of this in an upcoming commit. Epic: none Release note: None
This patch integrates `SpanConfigBounds` with the `KVSubscriber` and `spanconfig.Store`. The `spanconfig.Store` used by the `KVSubscriber` now has a handle to the global tenant capability state. It uses this to clamp any secondary tenant span configs that are not in conformance before returning them. By default, clamping of secondary tenant span configurations is turned off. It can be enabled using the `spanconfig.bounds.enabled` cluster setting. The setting is hidden. Fixes: #99689 Release note: None
The spanconfig package doesn't care about any capabilities other than span config bounds which are stored as Capabilities. This patch introduces a new `spanconfigbounds.Reader` interface which is intended to be a narrow, adapter interface over `tenantcapabilities.Reader`. We then use this new interface in the `KVSubscriber` and `Store`. Epic: none Release note: None
blathers-crl
bot
force-pushed
the
blathers/backport-release-23.1-99699
branch
2 times, most recently
from
March 30, 2023 04:05
082f1ab
to
54e0952
Compare
blathers-crl
bot
added
blathers-backport
This is a backport that Blathers created automatically.
O-robot
Originated from a bot.
labels
Mar 30, 2023
Thanks for opening a backport. Please check the backport criteria before merging:
If some of the basic criteria cannot be satisfied, ensure that the exceptional criteria are satisfied within.
Add a brief release justification to the body of your PR to justify this backport. Some other things to consider:
|
ajwerner
approved these changes
Mar 30, 2023
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! 1 of 0 LGTMs obtained (waiting on @arulajmani)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
blathers-backport
This is a backport that Blathers created automatically.
O-robot
Originated from a bot.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport 4/4 commits from #99699 on behalf of @arulajmani.
/cc @cockroachdb/release
This patch integrates
SpanConfigBounds
with theKVSubscriber
andspanconfig.Store
. Thespanconfig.Store
used by theKVSubscriber
now has a handle to the global tenant capability state. It uses this to
clamp any secondary tenant span configs that are not in conformance
before returning them.
By default, clamping of secondary tenant span configurations is turned
off. It can be enabled using the
spanconfig.bounds.enabled
clustersetting. The setting is hidden.
Fixes: #99689
Informs #99911
Release note: None
Release justification: GA blocker; only affects secondary tenants and is default off.