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

multitenant: listen for setting overrides #75711

Merged
merged 2 commits into from
Feb 9, 2022

Conversation

RaduBerinde
Copy link
Member

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 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 #73857.

Release note: None

@RaduBerinde RaduBerinde requested a review from ajwerner January 29, 2022 22:24
@RaduBerinde RaduBerinde requested a review from a team as a code owner January 29, 2022 22:24
@RaduBerinde RaduBerinde requested a review from dt January 29, 2022 22:24
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@RaduBerinde RaduBerinde force-pushed the tenant-side-settings branch 6 times, most recently from bf57142 to 5c06648 Compare January 31, 2022 17:08
@RaduBerinde RaduBerinde requested a review from a team January 31, 2022 17:08
@RaduBerinde RaduBerinde force-pushed the tenant-side-settings branch 4 times, most recently from bfe29e7 to 8de0c61 Compare February 2, 2022 17:11
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.

Friendly ping.

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

@RaduBerinde RaduBerinde force-pushed the tenant-side-settings branch 2 times, most recently from b960807 to 01d5134 Compare February 2, 2022 21:01
Copy link
Contributor

@ajwerner ajwerner 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 20 of 20 files at r1, 18 of 18 files at r2, all commit messages.
Reviewable status: :shipit: 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")
	}

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.

TFTR!

Reviewable status: :shipit: 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
@RaduBerinde RaduBerinde requested a review from a team as a code owner February 8, 2022 22:19
@RaduBerinde
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 9, 2022

Build succeeded:

@craig craig bot merged commit 7c4e234 into cockroachdb:master Feb 9, 2022
@RaduBerinde RaduBerinde deleted the tenant-side-settings branch February 10, 2022 22:30
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