-
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
multi-tenant: Relax restrictions on supported zone configuration changes from secondary tenants #75569
Comments
It might be just me, but I found this phrasing slightly ambiguous. To clarify, we only restrict secondary tenants' to reference zone/region tiers in the constraints/voter constraints/lease preferences fields. However, they are allowed to alter all other fields, such as num_voters, gc.ttl etc. The reason for this limitation is that secondary tenants do not have access to the |
111321: sql: remove references to closed multi-tenancy issues r=yuzefovich a=yuzefovich This commit updates a few places to remove now-closed multi-tenancy issues. Two of those places are gated behind the system tenant, so the issue doesn't matter, and they now use existing issue (even though it doesn't really relate to the features in question). In one place we choose to return "tenant cluster setting" not enabled error to make it more clear (I was just bitten by this because we returned opaque "unimplemented" error). In two other places in comments we update the references to existing issues tracking the corresponding work. Informs: #75569. Epic: None Release note: None 111375: enginepb: use struct equality comparison in MVCCValueHeader.IsEmpty r=RaduBerinde a=jbowens Now that we're on Go 1.20, the regression is gone. ``` goos: linux goarch: amd64 cpu: Intel(R) Xeon(R) CPU @ 2.80GHz │ old.txt │ new.txt │ │ sec/op │ sec/op vs base │ EncodeMVCCValue/header=empty/value=tombstone-24 4.797n ± 0% 4.809n ± 0% +0.26% (p=0.000 n=10) EncodeMVCCValue/header=empty/value=short-24 4.796n ± 0% 4.809n ± 0% +0.27% (p=0.000 n=10) EncodeMVCCValue/header=empty/value=long-24 4.797n ± 0% 4.809n ± 0% +0.26% (p=0.000 n=10) EncodeMVCCValue/header=local_walltime/value=tombstone-24 54.16n ± 1% 53.56n ± 0% -1.10% (p=0.000 n=10) EncodeMVCCValue/header=local_walltime/value=short-24 56.71n ± 1% 56.02n ± 1% -1.22% (p=0.001 n=10) EncodeMVCCValue/header=local_walltime/value=long-24 1.371µ ± 3% 1.314µ ± 1% -4.16% (p=0.000 n=10) EncodeMVCCValue/header=local_walltime+logical/value=long-24 1.346µ ± 2% 1.323µ ± 4% ~ (p=0.160 n=10) EncodeMVCCValue/header=local_walltime+logical/value=tombstone-24 57.56n ± 2% 57.09n ± 1% -0.83% (p=0.029 n=10) EncodeMVCCValue/header=local_walltime+logical/value=short-24 60.61n ± 1% 60.05n ± 1% -0.92% (p=0.001 n=10) geomean 50.62n 50.10n -1.02% ``` Epic: none Resolves #89199. Release note: None 111377: go.mod: bump Pebble to 725ebe297867 r=itsbilal a=jbowens ``` 725ebe29 db: fix excise test d925b88b db: add SkipPoint iterator option b5677d86 db: propagate Comparer into levelIter 3a1391d6 metamorphic: Ignore ErrCancelledCompaction in background errors da739ee7 db: adds tests for virtual sstable async table stats calculation 02b87adf db: improvements to data_test.go 5500da0a .*: support async stats for virtual sstables 17c625cf db: Fix FormatMajorVersion check in version_set for VSSTs 4e353e51 metamorphic: fix block property collectors integration 75888967 Revert "db: add SkipPoint iterator option" 4df2ce80 metamorphic: Add testing for ingest splits ``` Epic: none Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]> Co-authored-by: Jackson Owens <[email protected]>
Originally we were of the opinion that zone configurations in secondary tenants would only be updated by the multi-region semantics. As a result, we restricted their use to only specify constraints which referenced the region or zone tiers:
cockroach/pkg/sql/set_zone_config.go
Lines 991 to 1020 in 81c447d
The potential problem with this approach is that if we're going to make multi-tenant deployments the default deployment pattern for CRDB (something which is still being debated), this restriction will break some users. We'll need to relax this restriction if/when we go down that route.
Jira issue: CRDB-12730
Epic CRDB-26686
The text was updated successfully, but these errors were encountered: