You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is an example of the inheritance (on a 9 node cluster):
[email protected]:26257/movr> CREATE TABLE test(i INT PRIMARY KEY, j INT) PARTITION BY LIST (i) (
-> PARTITION one_and_five VALUES IN (1, 5)
-> );
CREATE TABLE
[email protected]:26257/movr> ALTER PARTITION one_and_five OF TABLE test CONFIGURE ZONE USING gc.ttlseconds = 10;
CONFIGURE ZONE 1
Time: 73ms total (execution 73ms / network 0ms)
[email protected]:26257/movr> ALTER INDEX test@test_pkey CONFIGURE ZONE USING num_replicas = 4;
CONFIGURE ZONE 1
Time: 204ms total (execution 204ms / network 0ms)
-- Looking at the partition, at /Table/112/1/1, we see that the amount of replicas it has is what we set for its parent index:
[email protected]:26257/movr> select replicas from crdb_internal.ranges where start_pretty = '/Table/112/1/1';
replicas
-------------
{1,2,4,7}
(1 row)
Time: 149ms total (execution 148ms / network 0ms)
-- To emphasize this, let's set the amount of replicas on the table to be a different number:
[email protected]:26257/movr> alter table test configure zone using num_replicas = 7;
CONFIGURE ZONE 1
-- And we see that the amount of replicas on the table is:
[email protected]:26257/movr> select replicas from crdb_internal.ranges where start_pretty = '/Table/112';
replicas
-------------------
{1,3,4,5,6,7,9}
(1 row)
Time: 156ms total (execution 156ms / network 0ms)
-- But the one for our partition has stayed the same:
[email protected]:26257/movr> select replicas from crdb_internal.ranges where start_pretty = '/Table/112/1/1';
replicas
-------------
{1,2,4,7}
(1 row)
Time: 153ms total (execution 153ms / network 0ms)
We have this little note at the bottom of the replication zone variables subtitle here that states:
A partition will inherit from its parent index
Jira issue: DOC-10922
The text was updated successfully, but these errors were encountered: