Skip to content

Commit

Permalink
Merge pull request cockroachdb#110961 from cockroachdb/blathers/backp…
Browse files Browse the repository at this point in the history
…ort-release-22.2-110918

release-22.2: changefeedccl: deflake TestAlterChangefeedAddTargetsDuringBackfill
  • Loading branch information
jayshrivastava authored Sep 20, 2023
2 parents 79908ba + 9d6c38c commit c21abb3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/ccl/changefeedccl/alter_changefeed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1023,9 +1023,11 @@ func TestAlterChangefeedAddTargetsDuringSchemaChangeError(t *testing.T) {
require.NoError(t, jobFeed.Pause())

var maxCheckpointSize int64 = 100 << 20
// Checkpoint progress frequently, and set the checkpoint size limit.
// Ensure that checkpoints happen every time by setting a large checkpoint size.
// Because setting 0 for the FrontierCheckpointFrequency disables checkpointing,
// setting 1 nanosecond is the smallest possible value.
changefeedbase.FrontierCheckpointFrequency.Override(
context.Background(), &s.Server.ClusterSettings().SV, 10*time.Millisecond)
context.Background(), &s.Server.ClusterSettings().SV, 1*time.Nanosecond)
changefeedbase.FrontierCheckpointMaxBytes.Override(
context.Background(), &s.Server.ClusterSettings().SV, maxCheckpointSize)

Expand Down

0 comments on commit c21abb3

Please sign in to comment.