Skip to content

Commit 0ac00f1

Browse files
authored
Merge pull request #153717 from yuzefovich/blathers/backport-release-24.1-153696
release-24.1: roachtest: disable auto stats in atomic copyfrom
2 parents 115d6c2 + 6aa2882 commit 0ac00f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/cmd/roachtest/tests/copyfrom.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ func runCopyFromCRDB(ctx context.Context, t test.Test, c cluster.Cluster, sf int
156156
"CREATE USER importer WITH PASSWORD '123'",
157157
fmt.Sprintf("ALTER ROLE importer SET copy_from_atomic_enabled = %t", atomic),
158158
}
159+
if atomic {
160+
// Disable auto stats collection so that it doesn't contend with the
161+
// long-running atomic COPY txn.
162+
stmts = append(stmts, "SET CLUSTER SETTING sql.stats.automatic_collection.enabled = false")
163+
}
159164
for _, stmt := range stmts {
160165
_, err = db.ExecContext(ctx, stmt)
161166
if err != nil {

0 commit comments

Comments
 (0)