Repository navigation
fix: handle cached snapshot records with recovery regressions - #41
Open
Konstantin V Shvachko (shvachko) wants to merge 2 commits into
Open
Konstantin V Shvachko (shvachko) wants to merge 2 commits into
Konstantin V Shvachko (shvachko) wants to merge 2 commits into
Conversation
Exercise sweep and writer-side capture with deterministic full-page promotion, cached deletions, an independent complete-state oracle, and three recovery cycles. Document the requirements and negative-control reproduction for the existing cache-conversion fix. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Oct 7, 2026
Author
|
@microsoft-github-policy-service agree company="Microsoft" |
This was referenced Oct 7, 2026
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.
Purpose
Upstream follow-up to #38, adding regression tests and explicit recovery requirements to its existing snapshot fix.
This branch preserves Sheikh Nasrullah (@snash4)'s original fix commit
f76efa8642706e30f960fcc73327861791c125a3unchanged, followed by the tests/documentation commitd4d3613cf26347381fb16e12a078ac383ccecdaa. Relative to upstreammain, it contains only the cache-conversion fix, native regression tests, and requirements documentation. There are no locking changes or downstream workarounds.This replaces the incorrectly targeted snash4#1; the contribution belongs in
microsoft/bf-tree.Regression requirements
BTreeMaporacle, detecting missing, extra, and incorrect records.The tests are in
src/snapshot.rs; requirements are documented indoc/snapshot-recovery.md. The ordinary-thread regression module does not replace the existing CPR/Shuttle suites.Validation
With the existing PR 38 fix, both new tests pass on Windows ARM64 and Linux ARM64 using Rust 1.93.0 in release mode.
Negative control: removing only PR 38's no-op handling makes each test fail independently with
Base page should not have op type: Cache. The existing fix was restored before final positive validation.Downstream complete-state integration results:
src/storage.rs:150:44:Result::unwrap()onErr(())The failing downstream run was stopped after it stalled. Passing runs do not erase that failure: full downstream acceptance remains blocked, and this snapshot-only contribution does not claim to fix the independent locking problem.
Review
Yi Shan (@acmshanyi) (Yi Shan), requesting your review of the snapshot fix, regression coverage, and requirements.
A maintainer will need to add the formal reviewer request for
acmshanyi: my API request was denied with HTTP 404 due to repository permissions.