Skip to content

Commit

Permalink
Merge #119852
Browse files Browse the repository at this point in the history
119852: changefeedccl: deflake TestAlterChangefeedPersistSinkURI r=stevendanna a=andyyang890

This patch deflakes `TestAlterChangefeedPersistSinkURI` by setting
`jobs.NewTestingKnobsWithShortIntervals`. Previously, if the changefeed
job's status was set to `pause-requested` before it started running,
the job would record an error when it attempted to start running and
become unclaimed. This had the potential of causing the test to time
out before the job could be reclaimed and properly paused. Now, the job
should be promptly reclaimed and paused.

Fixes #119676

Release note: None

Co-authored-by: Andy Yang <[email protected]>
  • Loading branch information
craig[bot] and andyyang890 committed Mar 4, 2024
2 parents 1d79dd8 + 0f81a99 commit b5e7608
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/ccl/changefeedccl/alter_changefeed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,11 @@ func TestAlterChangefeedPersistSinkURI(t *testing.T) {
const unredactedSinkURI = "null://blah?AWS_ACCESS_KEY_ID=the_secret"

ctx := context.Background()
srv, rawSQLDB, _ := serverutils.StartServer(t, base.TestServerArgs{})
srv, rawSQLDB, _ := serverutils.StartServer(t, base.TestServerArgs{
Knobs: base.TestingKnobs{
JobsTestingKnobs: jobs.NewTestingKnobsWithShortIntervals(),
},
})
defer srv.Stopper().Stop(ctx)

s := srv.ApplicationLayer()
Expand Down

0 comments on commit b5e7608

Please sign in to comment.