-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changefeedccl: only checkpoint leading spans above lead threshold
This patch updates the span-level checkpointing code to only checkpoint spans that are above the lead threshold (formerly lag threshold) so that we can at least maintain some minimal level of progress for spans that we go through the effort of checkpointing. Longer explanation: We create span-level checkpoints (at the configured interval) if we are either in a backfill or there's at least one span that is more than the lag/lead threshold ahead of the frontier min ts. Before this change, in the latter case we would checkpoint all spans that are above the frontier min ts regardless of whether they are at least the lag/lead threshold ahead. This change makes it so that when we are creating a span-level checkpoint due to the lag/lead threshold, we will only include spans that are at ahead of the frontier min ts by at least the lag/lead threshold. It also renames `changefeed.frontier_highwater_lag_checkpoint_threshold` to `changefeed.span_checkpoint.lead_threshold` for consistency. Release note (ops change): The cluster setting `changefeed.frontier_highwater_lag_checkpoint_threshold` has been renamed to `changefeed.span_checkpoint.lead_threshold`. The old name remains available for backwards-compatibility.
- Loading branch information
1 parent
5b49d1c
commit c7d49f2
Showing
8 changed files
with
102 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters