-
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
multitenant: listen for setting overrides #75711
Conversation
bf57142
to
5c06648
Compare
bfe29e7
to
8de0c61
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.
Friendly ping.
Reviewable status:
complete! 0 of 0 LGTMs obtained (waiting on @ajwerner and @dt)
b960807
to
01d5134
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 20 of 20 files at r1, 18 of 18 files at r2, all commit messages.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @dt and @RaduBerinde)
pkg/ccl/kvccl/kvtenantccl/setting_overrides.go, line 85 at r2 (raw file):
if firstEventInStream && e.Incremental { return errors.Newf("first event must not be Incremental") }
This check happens here and above this call. The handling seems the same. Pick one? Maybe remove this one?
Code quote:
if firstEventInStream && e.Incremental {
return errors.Newf("first event must not be Incremental")
}
01d5134
to
b2d239b
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.
TFTR!
Reviewable status:
complete! 1 of 0 LGTMs obtained (waiting on @dt)
This commit consolidates multiple uses of encoded setting values (raw value and type strings) into a `settings.EncodedValue` proto. The tenant settings roachpb API (not used yet) is updated to use this. Release note: None
This implements the tenant side code for setting overrides. Specifically, the tenant connector now implements the OverridesMonitor interface using the TenantSettings API. The server side of this API is not yet implemented, so this commit does not include end-to-end tests. Basic functionality is verified through a unit test that mocks the server-side API. Informs cockroachdb#73857. Release note: None
b2d239b
to
af5a690
Compare
bors r+ |
Build succeeded: |
settings: add EncodedValue proto, update tenant settings API
This commit consolidates multiple uses of encoded setting values (raw
value and type strings) into a
settings.EncodedValue
proto.The tenant settings roachpb API (not used yet) is updated to use this.
Release note: None
multitenant: listen for setting overrides
This implements the tenant side code for setting overrides.
Specifically, the tenant connector now implements the
OverridesMonitor
interface using theTenantSettings
API.The server side of this API is not yet implemented, so this commit
does not include end-to-end tests. Basic functionality is verified
through a unit test that mocks the server-side API.
Informs #73857.
Release note: None