-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spanconfig/sqlwatcher: checkpoint, even without updates
If `system.{descriptor,zones}` is static, we would previously discard all checkpoint events. This is not what we want -- we'd still like to know how caught up we are, with ongoing updates or otherwise. MVCC GC, after all, can still happen; if our last checkpoint was when the last update occurred, we may end up doing a lot of unnecessary work when finding out our last checkpoint was GC-ed from underneath us. Lack of periodic checkpoints also makes tests difficult to write -- you'd have to induce a benign update to flush out all earlier ones. This latent flakiness was uncovered after speeding up some existing tests in an earlier commit. NB: For incremental (possibly noop) checkpoints, we need to ensure that the sqlwatcher's buffer is initialized with a low watermark. When flushing events, we take the most conservative timestamp. If not initialized to a high water, this might be 0 -- violating the sqlwatcher's monotonically increasing checkpoint ts invariant. Release note: None
- Loading branch information
1 parent
6fdc475
commit d00baeb
Showing
6 changed files
with
153 additions
and
41 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
Oops, something went wrong.