Skip to content

Commit

Permalink
importccl: disable automatic stats for TestImportCSVStmt
Browse files Browse the repository at this point in the history
TestImportCSVStmt tests that IMPORT jobs appear in a certain order
in the system.jobs table. Automatic statistics were causing this
test to be flaky since CreateStats jobs were present in the jobs
table as well, in an unpredictable order. This commit disables
automatic stats for this test.

Fixes cockroachdb#34568

Release note: None
  • Loading branch information
rytaft committed Feb 5, 2019
1 parent 24d9fbf commit ead650f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ccl/importccl/import_stmt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,9 @@ func TestImportCSVStmt(t *testing.T) {
conn := tc.Conns[0]
sqlDB := sqlutils.MakeSQLRunner(conn)

// Turn off automatic stats so they don't show up in the jobs table.
sqlDB.Exec(t, `SET CLUSTER SETTING sql.stats.experimental_automatic_collection.enabled = false`)

sqlDB.Exec(t, `SET CLUSTER SETTING kv.import.batch_size = '10KB'`)

tablePath := filepath.Join(dir, "table")
Expand Down

0 comments on commit ead650f

Please sign in to comment.