-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
98574: sql: support tenant configuration templates r=stevendanna,ecwall a=knz Fixes #98573. Epic: CRDB-23559 First commit from #98726. This change introduces the LIKE clause to CREATE TENANT, which makes CREATE TENANT copy the parameters (but not the storage keyspace) from the tenant selected by LIKE. Also if LIKE is not specified, but the (new) cluster setting `sql.create_tenant.default_template` is not empty, the value of the cluster setting is used implicitly as LIKE clause. A proposed use of this is cluster-to-cluster replication, considering cutover as well. On the target (sink) cluster, the operator would do: ``` CREATE TENANT application LIKE app_template FROM REPLICATION OF application ON .... ``` And then cutover would look something like the following if they wanted the tenant to still be named "application" ``` ALTER TENANT application CUTOVER TO LATEST; DROP TENANT application; -- if there's one already ALTER TENANT application START SERVICE SHARED; ``` Release note: None 98721: go.mod: bump etcd-io/raft to 5fe1c31 r=tbg a=pavelkalinnikov Fixes #97926 Epic: none Release note (bug fix): fixed a rare panic in upstream etcd-io/raft when message appends race with log compaction 98747: kvserver: deflake TestReplicaProbeRequest r=pavelkalinnikov a=tbg When we ignored an ambigous result but the probe didn't actually happen, a later condition in the test would fail. Retry the probe on ambiguous results instead; the test already only expects the probe to happen "at least once", so we don't introduce any new issues should a successful probe end up being retried. Fixes #97136. Epic: none Release note: None Co-authored-by: Raphael 'kena' Poss <[email protected]> Co-authored-by: Pavel Kalinnikov <[email protected]> Co-authored-by: Tobias Grieger <[email protected]>
- Loading branch information
Showing
15 changed files
with
523 additions
and
88 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1198,16 +1198,6 @@ def go_deps(): | |
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/census-instrumentation/opencensus-proto/com_github_census_instrumentation_opencensus_proto-v0.2.1.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_certifi_gocertifi", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/certifi/gocertifi", | ||
sha256 = "11d525844c3dd711fb0ae31acc9ebd8a4d602215f14ff24ad1764ecb48464849", | ||
strip_prefix = "github.com/certifi/[email protected]", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/certifi/gocertifi/com_github_certifi_gocertifi-v0.0.0-20200922220541-2c3bb06c6054.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_cespare_xxhash", | ||
build_file_proto_mode = "disable_global", | ||
|
@@ -2812,16 +2802,6 @@ def go_deps(): | |
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/getkin/kin-openapi/com_github_getkin_kin_openapi-v0.53.0.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_getsentry_raven_go", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/getsentry/raven-go", | ||
sha256 = "eaffe69939612cd05f95e1846b8ddb4043655571be34cdb6412a66b41b6826eb", | ||
strip_prefix = "github.com/getsentry/[email protected]", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/getsentry/raven-go/com_github_getsentry_raven_go-v0.2.0.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_getsentry_sentry_go", | ||
build_file_proto_mode = "disable_global", | ||
|
@@ -8054,10 +8034,10 @@ def go_deps(): | |
name = "com_github_stretchr_testify", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/stretchr/testify", | ||
sha256 = "36f64e4f229f87672ef8de1c756648c4165e76abd034362517578397e824856c", | ||
strip_prefix = "github.com/stretchr/[email protected].1", | ||
sha256 = "400e18c88e5c4beb7ecca5d675048f1915a6e675b30fc03f8f563eb4dfde079a", | ||
strip_prefix = "github.com/stretchr/[email protected].2", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/stretchr/testify/com_github_stretchr_testify-v1.8.1.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/stretchr/testify/com_github_stretchr_testify-v1.8.2.zip", | ||
], | ||
) | ||
go_repository( | ||
|
@@ -10341,10 +10321,10 @@ def go_deps(): | |
], | ||
build_file_proto_mode = "default", | ||
importpath = "go.etcd.io/raft/v3", | ||
sha256 = "b27a4c7ddef64664745eaa5c817c80f3a7dc0d07d3b7837c02fde20993861ac7", | ||
strip_prefix = "go.etcd.io/raft/[email protected]20221221215055-65a0bf3b6779", | ||
sha256 = "a20a4dc3311336d6cf64bf8a436a6bed8095748733af309435df8de3b794e36f", | ||
strip_prefix = "go.etcd.io/raft/[email protected]20230315220435-5fe1c31c5158", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/go.etcd.io/raft/v3/io_etcd_go_raft_v3-v3.0.0-20221221215055-65a0bf3b6779.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/go.etcd.io/raft/v3/io_etcd_go_raft_v3-v3.0.0-20230315220435-5fe1c31c5158.zip", | ||
], | ||
) | ||
go_repository( | ||
|
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
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
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
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
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
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
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
Oops, something went wrong.