Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
129131: changefeedccl: enable vmodule for TestAlterChangefeedAddTargetFamily r=rharding6373 a=andyyang890

This patch enables verbose logging (vmodule `helpers_test=1`) for
`TestAlterChangefeedAddTargetFamily` so that we can get more information
about what, if any, messages that the changefeed sees before the test
times out.

Informs cockroachdb#128749

Release note: None

Co-authored-by: Andy Yang <[email protected]>
  • Loading branch information
craig[bot] and andyyang890 committed Aug 20, 2024
2 parents cea6388 + 5a648d5 commit f1a5aa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/ccl/changefeedccl/alter_changefeed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ func TestAlterChangefeedAddTargetFamily(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)

require.NoError(t, log.SetVModule("helpers_test=1"))

testFn := func(t *testing.T, s TestServer, f cdctest.TestFeedFactory) {
sqlDB := sqlutils.MakeSQLRunner(s.DB)
sqlDB.Exec(t, `CREATE TABLE foo (a INT PRIMARY KEY, b STRING, FAMILY onlya (a), FAMILY onlyb (b))`)
Expand Down
2 changes: 1 addition & 1 deletion pkg/ccl/changefeedccl/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func readNextMessages(
return nil, ctx.Err()
}
if log.V(1) {
log.Infof(context.Background(), "About to read a message (%d out of %d)", len(actual), numMessages)
log.Infof(context.Background(), "about to read a message (%d out of %d)", len(actual), numMessages)
}
m, err := f.Next()
if log.V(1) {
Expand Down

0 comments on commit f1a5aa8

Please sign in to comment.