Skip to content

Commit 227fd77

Browse files
committed
debugging silly test
1 parent 10e2308 commit 227fd77

File tree

1 file changed

+33
-19
lines changed

1 file changed

+33
-19
lines changed

pkg/ccl/changefeedccl/changefeed_test.go

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -127,39 +127,53 @@ func TestChangefeedBasics(t *testing.T) {
127127
sqlDB.Exec(t, `CREATE TABLE foo (a INT PRIMARY KEY, b STRING)`)
128128
// sqlDB.Exec(t, `INSERT INTO foo VALUES (0, 'initial')`)
129129
// sqlDB.Exec(t, `UPSERT INTO foo VALUES (0, 'updated')`)
130-
foo := feed(t, f, `CREATE CHANGEFEED FOR foo`)
131-
defer closeFeed(t, foo)
130+
// foo := feed(t, f, `CREATE CHANGEFEED FOR foo`)
131+
// defer closeFeed(t, foo)
132132

133133
// 'initial' is skipped because only the latest value ('updated') is
134134
// emitted by the initial scan.
135135
// assertPayloads(t, foo, []string{
136136
// `foo: [0]->{"after": {"a": 0, "b": "updated"}}`,
137137
// })
138138

139-
sqlDB.Exec(t, `INSERT INTO foo VALUES (1, 'a'), (2, 'b')`)
140-
assertPayloads(t, foo, []string{
141-
`foo: [1]->{"after": {"a": 1, "b": "a"}}`,
142-
`foo: [2]->{"after": {"a": 2, "b": "b"}}`,
143-
})
139+
// sqlDB.Exec(t, `INSERT INTO foo VALUES (1, 'a')`) //, (2, 'b')`)
140+
// assertPayloads(t, foo, []string{
141+
// `foo: [1]->{"after": {"a": 1, "b": "a"}}`,
142+
// // `foo: [2]->{"after": {"a": 2, "b": "b"}}`,
143+
// })
144144

145-
sqlDB.Exec(t, `UPSERT INTO foo VALUES (2, 'c'), (3, 'd')`)
146-
assertPayloads(t, foo, []string{
147-
`foo: [2]->{"after": {"a": 2, "b": "c"}}`,
148-
`foo: [3]->{"after": {"a": 3, "b": "d"}}`,
149-
})
145+
// sqlDB.Exec(t, `UPSERT INTO foo VALUES (2, 'c'), (3, 'd')`)
146+
// assertPayloads(t, foo, []string{
147+
// `foo: [2]->{"after": {"a": 2, "b": "c"}}`,
148+
// `foo: [3]->{"after": {"a": 3, "b": "d"}}`,
149+
// })
150150

151-
sqlDB.Exec(t, `DELETE FROM foo WHERE a = 1`)
152-
assertPayloads(t, foo, []string{
153-
`foo: [1]->{"after": null}`,
154-
})
151+
// sqlDB.Exec(t, `DELETE FROM foo WHERE a = 1`)
152+
// assertPayloads(t, foo, []string{
153+
// `foo: [1]->{"after": null}`,
154+
// })
155155
}
156156

157+
// kafka webhook sinkless combo timed out
158+
// kafka webhook sinkless cloudstorage combo timed out
159+
// cloudstorage alone did not
160+
// kafka+webhook did not
161+
// sinkless alone... timed out?
162+
// sinkless back with the initial scan stuff was fine?
163+
164+
// running everything except sinkless: passed in 20s
165+
166+
// sinkless with only the first insert and assert times out
167+
// sinkless where the first insert only puts in a single value... times out
168+
// sinkless with no inserts and no assertions also times out.
169+
// sinkless where I don't even make the changefeed is fine (thank god)
170+
157171
// cdcTest(t, testFn, feedTestForceSink("kafka"))
158172
// cdcTest(t, testFn, feedTestForceSink("enterprise"))
159-
cdcTest(t, testFn, feedTestForceSink("webhook"))
173+
// cdcTest(t, testFn, feedTestForceSink("webhook"))
160174
// cdcTest(t, testFn, feedTestForceSink("pubsub"))
161-
// cdcTest(t, testFn, feedTestForceSink("sinkless"))
162-
// cdcTest(t, testFn, feedTestForceSink("cloudstorage"))
175+
cdcTest(t, testFn, feedTestForceSink("sinkless"))
176+
// cdcTest(t, testFn, feedTestForceSink("cloudstorage")) // I think this was the issue
163177

164178
// NB running TestChangefeedBasics, which includes a DELETE, with
165179
// cloudStorageTest is a regression test for #36994.

0 commit comments

Comments
 (0)