Skip to content

🐛 fix(retention): bind plans to one snapshot - #1852

Merged
gaborbernat merged 1 commit into
mainfrom
fix/retention-snapshot-1145
Aug 29, 2026
Merged

gaborbernat merged 1 commit into
mainfrom
fix/retention-snapshot-1145

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

A retention plan could combine a summary read before evaluation with decisions read after a concurrent metadata commit. The cursor or export header could then describe a different frontier from its rows.

Drivers open the candidate snapshot, report its identity, then emit decisions. The planner checks cursors and writes headers from that identity, rejects drivers that violate the start protocol, and keeps stale responses ahead of all output.

Closes #1145

The planner read retention summaries before driver evaluation. A concurrent
metadata commit could pair one frontier with decisions from another snapshot.

Drivers pass the snapshot identity through a start callback while the read
transaction remains open. The planner checks cursors and writers emit headers
from that identity before streaming decisions.
@gaborbernat gaborbernat added the bug Something isn't working label Aug 29, 2026
@gaborbernat gaborbernat self-assigned this Aug 29, 2026
@codspeed

codspeed Bot commented Aug 29, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 23 untouched benchmarks
⏩ 139 skipped benchmarks1


Comparing fix/retention-snapshot-1145 (37259f4) with main (ef5f97c)

Open in CodSpeed

Footnotes

  1. 139 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@gaborbernat
gaborbernat merged commit 811f476 into main Aug 29, 2026
32 checks passed
@gaborbernat
gaborbernat deleted the fix/retention-snapshot-1145 branch August 29, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export retention rows from one metadata snapshot

1 participant