Repository navigation
Conversation
aknuds1
requested review from
a team,
bwplotka,
codesome,
jesusvazquez and
krajorama
as code owners
September 20, 2026 16:25
Signed-off-by: Arve Knudsen <[email protected]>
aknuds1
force-pushed
the
arve/test-wbl-checkpoint-mmap-recovery
branch
from
September 23, 2026 14:47
4edab0f to
efd8737
Compare
Contributor
Author
|
This seems to overlap with #19805, which has since been merged. Closing. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a checkpoint/restart case to
TestWBLAndMmapReplayfor all seven sample types. It evicts and recreates a series, replays its two WAL references, appends OOO samples until they are mmapped, and checkpoints the WAL before restarting again. The test checks that all samples survive both that restart and a subsequent OOO compaction and restart.The fixture verifies that the checkpoint covers the recreated series definition, the original WAL segments are removed, and no OOO block exists before the recovery check. It uses the default OOO chunk capacity and compares sample timestamps and values.
Which issue(s) does the PR fix:
Related to #19737.
The identical test patch passes on
mainat1d6fe3787e0f0e4f1e0f3cd4e0e12e43079cdc3c. Applied to the complete tree of #19737 at18f06f3fe079a06943654887fa32bf938601f0ec, it fails for all seven sample types after checkpointing and restarting: only 3 of 35 samples survive. All setup and pre-restart assertions pass. This PR adds coverage for the behavior already present onmain.Historical reproduction on the recorded #19737 tree, with this test patch applied:
Release notes for end users (ALL commits must be considered).