Skip to content

Commit 62fd29d

Browse files
committed
roachtest: disable max object count for large_schema_benchmark
This test is intentionally using a large number of tables, so we should disable the guardrail. Release note: None
1 parent d83d1d5 commit 62fd29d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/cmd/roachtest/tests/large_schema_benchmark.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ func registerLargeSchemaBenchmark(r registry.Registry, numTables int, isMultiReg
170170
// a large number of tables
171171
_, err = conn.Exec("SET CLUSTER SETTING kv.transaction.internal.max_auto_retries=500")
172172
require.NoError(t, err)
173+
// Disable the schema object count limit to allow creating 40,000+
174+
// tables. This is a guardrail that prevents unbounded growth of the
175+
// descriptor table, but for this benchmark we intentionally want to
176+
// test with a large number of tables.
177+
_, err = conn.Exec("SET CLUSTER SETTING sql.schema.approx_max_object_count = 0")
178+
require.NoError(t, err)
173179
// Create a user that will be used for authentication for the REST
174180
// API calls.
175181
_, err = conn.Exec("CREATE USER roachadmin password 'roacher'")

0 commit comments

Comments
 (0)