Skip to content

Commit ce9720b

Browse files
committed
logictestccl: wait for tenant overrides to propagate in multi_region_secondary_tenants_abstractions_allowed
Release note: None
1 parent c33f7aa commit ce9720b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
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

0 commit comments

Comments
 (0)