Skip to content

Commit

Permalink
roachtest/tpchvec: disable auto stats collection
Browse files Browse the repository at this point in the history
At the beginning of the tpchvec tests we load the TPC-H dataset and
analyze all tables. Then we proceed to run each query a few times, both
with and without some settings. During these tests we should disable
automatic stats collection so that it doesn't interfere with results.

Fixes: #89895

Release note: None
  • Loading branch information
michae2 committed Oct 19, 2022
1 parent ed1d8f5 commit 2d2fc9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/cmd/roachtest/tests/tpchvec.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,13 @@ func runTPCHVec(
t.Status("waiting for full replication")
err := WaitFor3XReplication(ctx, t, conn)
require.NoError(t, err)

_, err = conn.Exec("SET CLUSTER SETTING sql.stats.automatic_collection.enabled = false;")
require.NoError(t, err)
defer func() {
_, err := conn.Exec("RESET CLUSTER SETTING sql.stats.automatic_collection.enabled;")
require.NoError(t, err)
}()
createStatsFromTables(t, conn, tpchTables)

testRun(ctx, t, c, conn, testCase)
Expand Down

0 comments on commit 2d2fc9c

Please sign in to comment.