Skip to content

Commit e97c017

Browse files
authored
Merge pull request #153719 from yuzefovich/blathers/backport-release-25.2-153696
release-25.2: roachtest: disable auto stats in atomic copyfrom
2 parents b66d0c7 + 144da32 commit e97c017

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
@@ -158,6 +158,11 @@ func runCopyFromCRDB(ctx context.Context, t test.Test, c cluster.Cluster, sf int
158158
"CREATE USER importer WITH PASSWORD '123'",
159159
fmt.Sprintf("ALTER ROLE importer SET copy_from_atomic_enabled = %t", atomic),
160160
}
161+
if atomic {
162+
// Disable auto stats collection so that it doesn't contend with the
163+
// long-running atomic COPY txn.
164+
stmts = append(stmts, "SET CLUSTER SETTING sql.stats.automatic_collection.enabled = false")
165+
}
161166
for _, stmt := range stmts {
162167
_, err = db.ExecContext(ctx, stmt)
163168
if err != nil {

0 commit comments

Comments
 (0)