-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes CRDB watch implementation accumulating past updates
when the timestamp to start emitting updates from is way in the past, CRDB will not emit checkpoints. As a consequence, every update in the w.r.t to the moment the changefeed was created will accumulate in memory and OOM the process with a large enough backlog. The proposed solution is to compute one checkpoint from the real-time stream of updates, and then use that as the high-watermark for the backlog of changes from the past. We need to emit all the updates before we can emit a checkpoint, so downstream callers would have to handle it accordingly.
- Loading branch information
1 parent
b02eed1
commit 191971b
Showing
1 changed file
with
55 additions
and
4 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