Skip to content

Commit

Permalink
Merge pull request #123597 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-24.1.0-rc-123370

release-24.1.0-rc: changefeedccl: disable drain watcher by default
  • Loading branch information
wenyihu6 authored May 3, 2024
2 parents e68c096 + 37619ef commit 34bbed6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ccl/changefeedccl/changefeed_processors.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ var aggregatorEmitsShutdownCheckpoint = settings.RegisterBoolSetting(
settings.ApplicationLevel,
"changefeed.shutdown_checkpoint.enabled",
"upon shutdown aggregator attempts to emit an up-to-date checkpoint",
true,
false,
)

type drainWatcher <-chan struct{}
Expand Down
1 change: 1 addition & 0 deletions pkg/ccl/changefeedccl/changefeed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6224,6 +6224,7 @@ func TestChangefeedHandlesRollingRestart(t *testing.T) {

db := tc.ServerConn(1)
sqlDB := sqlutils.MakeSQLRunner(db)
serverutils.SetClusterSetting(t, tc, "changefeed.shutdown_checkpoint.enabled", true)
serverutils.SetClusterSetting(t, tc, "kv.rangefeed.enabled", true)
serverutils.SetClusterSetting(t, tc, "kv.closed_timestamp.target_duration", 10*time.Millisecond)
serverutils.SetClusterSetting(t, tc, "changefeed.experimental_poll_interval", 10*time.Millisecond)
Expand Down

0 comments on commit 34bbed6

Please sign in to comment.