Skip to content

Commit 0096155

Browse files
committed
roachtest/large-schema-benchmark: enable locked leasing timestamp
Previously, we had no testing enabled for locked leasing previously outside of the logictest. This patch enables this logic for the large-schema-benchmark roachtest. Fixes: #157917 Release note: None
1 parent 35d6de6 commit 0096155

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cmd/roachtest/tests/large_schema_benchmark.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ func registerLargeSchemaBenchmark(r registry.Registry, numTables int, isMultiReg
160160
// pg_catalog and information_schema.
161161
_, err = conn.Exec("SET CLUSTER SETTING sql.catalog.allow_leased_descriptors.enabled = 'true'")
162162
require.NoError(t, err)
163+
// Enabled locked descriptor leasing for correctness.
164+
_, err = conn.Exec("SET CLUSTER SETTING sql.catalog.descriptor_lease.use_locked_timestamps.enabled = 'true'")
165+
require.NoError(t, err)
163166
// Since we will be making a large number of databases / tables
164167
// quickly,on MR the job retention can slow things down. Let's
165168
// minimize how long jobs are kept, so that the creation / ingest

0 commit comments

Comments
 (0)