-
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 ahead of the frontier min ts by at least the lag/lead threshold so that we can maintain some minimal level of progress for the spans that we checkpoint. Release note: None
- Loading branch information
1 parent
a7809b1
commit bdd0cd4
Showing
4 changed files
with
87 additions
and
26 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