From c38e6025a2cbaa6c1bee8087b1589b063b70ab4f Mon Sep 17 00:00:00 2001 From: Matt White Date: Fri, 20 Mar 2026 16:23:34 +0000 Subject: [PATCH] sql/importer: fix TestUniqueUUID timeout Disable elastic CPU control in TestUniqueUUID to prevent the test from exceeding the 15m timeout. The test imports 50,000 rows across three tables with UUID/random primary key defaults. When the metamorphic constant `import-row-count-validation` selects `sync` mode, each import synchronously waits for an INSPECT validation job that scans the imported data. Combined with elastic CPU throttling (which was recently enabled for import jobs), the cumulative scan time across the three imports can exceed the test timeout. This mirrors the fix applied to other import tests in bda9189736f. Resolves: #166130 Epic: None Release note: None Co-Authored-By: Claude Opus 4.6 --- pkg/sql/importer/import_stmt_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/sql/importer/import_stmt_test.go b/pkg/sql/importer/import_stmt_test.go index a1670c14361e..2e6c4a22d6f8 100644 --- a/pkg/sql/importer/import_stmt_test.go +++ b/pkg/sql/importer/import_stmt_test.go @@ -3774,6 +3774,10 @@ func TestUniqueUUID(t *testing.T) { connDB := tc.ServerConn(0) sqlDB := sqlutils.MakeSQLRunner(connDB) + // Disable elastic CPU control to avoid timeout — elastic CPU throttling + // can push this test past the 15m timeout. + sqlDB.Exec(t, `SET CLUSTER SETTING bulkio.import.elastic_control.enabled = false`) + dataSize := parallelImporterReaderBatchSize * 100 sqlDB.Exec(t, fmt.Sprintf(`CREATE TABLE data AS SELECT * FROM generate_series(1, %d);`, dataSize))