diff --git a/pkg/ccl/crosscluster/physical/stream_ingestion_frontier_processor.go b/pkg/ccl/crosscluster/physical/stream_ingestion_frontier_processor.go index 5418ab7905f7..bce1c55a44b2 100644 --- a/pkg/ccl/crosscluster/physical/stream_ingestion_frontier_processor.go +++ b/pkg/ccl/crosscluster/physical/stream_ingestion_frontier_processor.go @@ -423,11 +423,7 @@ func (sf *streamIngestionFrontier) maybePersistFrontierEntries() error { func (sf *streamIngestionFrontier) maybeCheckForLaggingNodes() error { ctx := sf.Ctx() - - // We halve the frequency relative to the ReplanFrequency setting (i.e. - // check twice as often), because the node lag checker will only restart the - // distSQL plan if a node is lagging for 2 checks in a row. - checkFreq := crosscluster.ReplanFrequency.Get(&sf.FlowCtx.Cfg.Settings.SV) / 2 + checkFreq := crosscluster.LagCheckFrequency.Get(&sf.FlowCtx.Cfg.Settings.SV) maxLag := crosscluster.InterNodeLag.Get(&sf.FlowCtx.Cfg.Settings.SV) if sf.persistedReplicatedTime.IsEmpty() { log.VEvent(ctx, 2, "skipping lag replanning check: no persisted replicated time")