Skip to content

Commit cc97c06

Browse files
craig[bot]koorosh
andcommitted
106495: sql: deflake TestParallel r=koorosh a=koorosh This change is attempt to fix flakiness of TestParallel test with following updates: - increased `range max bytes` setting as it was increased in a37e053. - disabled automatic stats collection for system tables, it has be done in addition to already disabled `stats.AutomaticStatisticsClusterMode` setting. Resolves: cockroachdb#101614 Release note: None Co-authored-by: Andrii Vorobiov <[email protected]>
2 parents f0cd18b + 80b6cde commit cc97c06

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/sql/logictest/parallel_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ func (t *parallelTest) setup(ctx context.Context, spec *parTestSpec) {
195195
sql.DistSQLClusterExecMode.Override(ctx, &st.SV, int64(mode))
196196
// Disable automatic stats - they can interfere with the test shutdown.
197197
stats.AutomaticStatisticsClusterMode.Override(ctx, &st.SV, false)
198+
stats.UseStatisticsOnSystemTables.Override(ctx, &st.SV, false)
199+
stats.AutomaticStatisticsOnSystemTables.Override(ctx, &st.SV, false)
198200
}
199201

200202
t.clients = make([][]*gosql.DB, spec.ClusterSize)

pkg/sql/logictest/testdata/parallel_test/create_stats/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
cluster_size: 3
55

6-
range_split_size: 32768
6+
range_split_size: 67108864
77

88
run:
99
# First run setup

0 commit comments

Comments
 (0)