Skip to content

Commit 55d4ac6

Browse files
committed
changefeedccl: remove max object count for multi-table pts testing
Set the cluster setting sql.schema.approx_max_object_count = 0, turning off the object count limit so we can run this test with 50k tables. That test currently fails during fixture setup due to the newly introduced default schema object limit (20,000). This test attempts to create more than 50,000 descriptors, exceeding the limit and triggering a guardrail error. Fixes: #154827 Fixes: #154826 Epic: CRDB-1421 Release note: None
1 parent 58a3f6f commit 55d4ac6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/cmd/roachtest/tests/cdc.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,6 +1889,12 @@ func runCDCMultiTablePTSBenchmark(
18891889
}
18901890

18911891
func configureDBForMultiTablePTSBenchmark(db *gosql.DB) error {
1892+
// Multi-table PTS benchmarking should be able to test with more tables
1893+
// than the default limit set here. Setting this to 0 disables the limit.
1894+
if _, err := db.Exec("SET CLUSTER SETTING sql.schema.approx_max_object_count = 0"); err != nil {
1895+
return err
1896+
}
1897+
18921898
// This is used to trigger frequent garbage collection and
18931899
// protected timestamp updates.
18941900
if _, err := db.Exec("ALTER DATABASE defaultdb CONFIGURE ZONE USING gc.ttlseconds = 1"); err != nil {

0 commit comments

Comments
 (0)