Skip to content

Commit 44fdf34

Browse files
committed
changefeedccl: disable schema_locked in TestChangefeedTruncateOrDrop
This patch disables `schema_locked` on the tables used in `TestChangefeedTruncateOrDrop` because of a known issue where `schema_locked` does not block `TRUNCATE`, which could cause this test to flake. Release note: None
1 parent 9143b56 commit 44fdf34

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/ccl/changefeedccl/changefeed_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6281,8 +6281,9 @@ func TestChangefeedTruncateOrDrop(t *testing.T) {
62816281
return err
62826282
}
62836283

6284-
sqlDB.Exec(t, `CREATE TABLE truncate (a INT PRIMARY KEY)`)
6285-
sqlDB.Exec(t, `CREATE TABLE truncate_cascade (b INT PRIMARY KEY REFERENCES truncate (a))`)
6284+
// TODO(#151941): Re-enable auto schema_locked for this test.
6285+
sqlDB.Exec(t, `CREATE TABLE truncate (a INT PRIMARY KEY) WITH (schema_locked=false)`)
6286+
sqlDB.Exec(t, `CREATE TABLE truncate_cascade (b INT PRIMARY KEY REFERENCES truncate (a)) WITH (schema_locked=false)`)
62866287
sqlDB.Exec(t,
62876288
`BEGIN; INSERT INTO truncate VALUES (1); INSERT INTO truncate_cascade VALUES (1); COMMIT`)
62886289
truncate := feed(t, f, `CREATE CHANGEFEED FOR truncate`)

0 commit comments

Comments
 (0)