Repository navigation
Conversation
Signed-off-by: bootjp <contact@bootjp.me>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
TLA+ spec divergence review (auto-triggered)This PR touches files that the TLA+ safety spec has an anchor on (per Anchored files changed in this PR head (de8497c):
What to check, by subsystem:
If the change is correct but requires a spec update, edit @claude review please verify TLA+ spec divergence per the checklist above. @codex review please verify TLA+ spec divergence per the checklist above. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
TLA+ spec divergence review (auto-triggered)This PR touches files that the TLA+ safety spec has an anchor on (per Anchored files changed in this PR head (de8497c):
What to check, by subsystem:
If the change is correct but requires a spec update, edit @claude review please verify TLA+ spec divergence per the checklist above. @codex review please verify TLA+ spec divergence per the checklist above. |
Summary
A live CPU sample during a Raft cold start showed both transaction-decision GC and Redis fence GC applying entries in Pebble forward scans. Those scans remembered every visited logical key, including tombstoned keys, while looking for as few as one visible row. Rehashing the visited-key map consumed a large share of CPU samples.
Keep only visited prefixes that could still occur at the current physical iterator position. Retain nested prefixes when binary extensions interleave with another key's MVCC versions. The same scan visits the same records and preserves tombstone, expiration, GC, and apply semantics.
Validation
Summary by CodeRabbit