Skip to content

Commit dd71096

Browse files
committed
roachtest: metamorphically pcr bump reader tenant system table ids
Epic: none Release note: none
1 parent 7a5c9f8 commit dd71096

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pkg/cmd/roachtest/tests/cluster_to_cluster.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ func (rd *replicationDriver) setupC2C(
575575
destSQL := sqlutils.MakeSQLRunner(destDB)
576576

577577
srcClusterSettings(t, srcSQL)
578-
destClusterSettings(t, destSQL, rd.rs.additionalDuration)
578+
destClusterSettings(t, destSQL, rd.rng, rd.rs.additionalDuration)
579579

580580
overrideSrcAndDestTenantTTL(t, srcSQL, destSQL, rd.rs.overrideTenantTTL)
581581

@@ -1869,7 +1869,9 @@ func srcClusterSettings(t test.Test, db *sqlutils.SQLRunner) {
18691869
)
18701870
}
18711871

1872-
func destClusterSettings(t test.Test, db *sqlutils.SQLRunner, additionalDuration time.Duration) {
1872+
func destClusterSettings(
1873+
t test.Test, db *sqlutils.SQLRunner, rng *rand.Rand, additionalDuration time.Duration,
1874+
) {
18731875
db.ExecMultiple(t,
18741876
`SET CLUSTER SETTING kv.rangefeed.enabled = true;`,
18751877
`SET CLUSTER SETTING kv.lease.reject_on_leader_unknown.enabled = true;`,
@@ -1881,6 +1883,10 @@ func destClusterSettings(t test.Test, db *sqlutils.SQLRunner, additionalDuration
18811883
db.Exec(t, fmt.Sprintf(`SET CLUSTER SETTING stream_replication.replan_flow_frequency = '%s'`,
18821884
replanFrequency))
18831885
}
1886+
1887+
if rng.Intn(2) == 0 {
1888+
db.Exec(t, `SET CLUSTER SETTING physical_cluster_replication.reader_system_table_id_offset = 100000`)
1889+
}
18841890
}
18851891

18861892
func overrideSrcAndDestTenantTTL(

0 commit comments

Comments
 (0)