Skip to content

Commit fd9aa49

Browse files
craig[bot]tbgrafissherkolategan
committed
144368: roachtest: provision admission-control/database-drop with 800GiB/node r=tbg a=tbg This gives the cluster >7TiB of available capacity, which should be more than enough to import the ~4.1TiB dataset. Informs #143690 (comment). ^-- does not fix, since we also saw unique constraint violations. Epic: none Release note: None 144401: logictestccl: wait for tenant overrides to propagate in multi_region_secondary_tenants_abstractions_allowed r=rafiss a=rafiss fixes #144275 fixes #144283 Release note: None 144402: microbench-ci: fix err check panic r=DarrylWong a=herkolategan The `skipPermissionError` function should be able to handle nil errors, otherwise we panic when trying to string match on a specific error. Epic: None Release note: None Co-authored-by: Tobias Grieger <[email protected]> Co-authored-by: Rafi Shamim <[email protected]> Co-authored-by: Herko Lategan <[email protected]>
4 parents 847d91d + 91e35fb + ce9720b + abd6f95 commit fd9aa49

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

pkg/ccl/logictestccl/testdata/logic_test/multi_region_secondary_tenants_abstractions_allowed

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ ALTER TENANT ALL SET CLUSTER SETTING sql.zone_configs.max_replicas_per_region =
2929

3030
user root
3131

32+
# Wait for the setting to be propagated to the tenant cluster.
33+
query I retry
34+
SHOW CLUSTER SETTING sql.zone_configs.max_replicas_per_region
35+
----
36+
4
37+
3238
# Our setting should not affect non-constraint related zone config updates.
3339
statement ok
3440
ALTER DATABASE db CONFIGURE ZONE USING gc.ttlseconds = 1
@@ -49,6 +55,12 @@ ALTER TENANT ALL SET CLUSTER SETTING sql.zone_configs.max_replicas_per_region =
4955

5056
user root
5157

58+
# Wait for the setting to be propagated to the tenant cluster.
59+
query I retry
60+
SHOW CLUSTER SETTING sql.zone_configs.max_replicas_per_region
61+
----
62+
3
63+
5264
statement ok
5365
ALTER DATABASE db CONFIGURE ZONE USING gc.ttlseconds = 1
5466

@@ -73,6 +85,12 @@ ALTER TENANT ALL SET CLUSTER SETTING sql.zone_configs.default_range_modifiable_b
7385

7486
user root
7587

88+
# Wait for the setting to be propagated to the tenant cluster.
89+
query B retry
90+
SHOW CLUSTER SETTING sql.zone_configs.default_range_modifiable_by_non_root.enabled
91+
----
92+
false
93+
7694
statement ok
7795
ALTER RANGE default CONFIGURE ZONE USING num_replicas = 10
7896

pkg/cmd/microbench-ci/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ func makeCompareCommand() *cobra.Command {
164164
}
165165
if hasLabel || suite.changeDetected() {
166166
skipPermissionError := func(err error, action string) error {
167+
if err == nil {
168+
return nil
169+
}
167170
// If this is a permission error, we don't want to fail the build. This
168171
// can happen if the GitHub token has read-only access, for example when
169172
// testing the pull_request trigger from a fork.

pkg/cmd/roachtest/tests/admission_control_database_drop.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ func registerDatabaseDrop(r registry.Registry) {
2929
spec.CPU(8),
3030
spec.WorkloadNode(),
3131
spec.WorkloadNodeCPU(8),
32-
spec.VolumeSize(500),
32+
// The dataset uses above 4TiB of data, and if we have to create the dataset
33+
// via IMPORT we need some buffer. 500GiB per node (4.5TiB total) has been
34+
// found to fail regularly in the past since the IMPORT job fails when any
35+
// node falls below 5% available capacity. 800GiB (7.2TiB) ought to be more
36+
// than enough.
37+
spec.VolumeSize(800),
3338
spec.GCEVolumeType("pd-ssd"),
3439
spec.GCEMachineType("n2-standard-8"),
3540
spec.GCEZones("us-east1-b"),

0 commit comments

Comments
 (0)