Skip to content

Commit 656b6b0

Browse files
committed
roachtest: metamorphically pcr bump reader tenant system table ids
Epic: none Release note: none
1 parent 0429616 commit 656b6b0

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
@@ -603,7 +603,7 @@ func (rd *replicationDriver) setupC2C(
603603
destSQL := sqlutils.MakeSQLRunner(destDB)
604604

605605
srcClusterSettings(t, srcSQL)
606-
destClusterSettings(t, destSQL, rd.rs.additionalDuration)
606+
destClusterSettings(t, destSQL, rd.rng, rd.rs.additionalDuration)
607607

608608
overrideSrcAndDestTenantTTL(t, srcSQL, destSQL, rd.rs.overrideTenantTTL)
609609

@@ -1982,7 +1982,9 @@ func srcClusterSettings(t test.Test, db *sqlutils.SQLRunner) {
19821982
)
19831983
}
19841984

1985-
func destClusterSettings(t test.Test, db *sqlutils.SQLRunner, additionalDuration time.Duration) {
1985+
func destClusterSettings(
1986+
t test.Test, db *sqlutils.SQLRunner, rng *rand.Rand, additionalDuration time.Duration,
1987+
) {
19861988
db.ExecMultiple(t,
19871989
`SET CLUSTER SETTING kv.rangefeed.enabled = true;`,
19881990
`SET CLUSTER SETTING kv.lease.reject_on_leader_unknown.enabled = true;`,
@@ -1995,6 +1997,10 @@ func destClusterSettings(t test.Test, db *sqlutils.SQLRunner, additionalDuration
19951997
db.Exec(t, fmt.Sprintf(`SET CLUSTER SETTING stream_replication.replan_flow_frequency = '%s'`,
19961998
replanFrequency))
19971999
}
2000+
2001+
if rng.Intn(2) == 0 {
2002+
db.Exec(t, `SET CLUSTER SETTING physical_cluster_replication.reader_system_table_id_offset = 100000`)
2003+
}
19982004
}
19992005

20002006
func overrideSrcAndDestTenantTTL(

0 commit comments

Comments
 (0)