Skip to content

Retain Records needed by open Jetty readers - #96

Closed
moetemp wants to merge 7 commits into
moe/jetty/v2/t7-direct-readsfrom
moe/jetty/v2/t8-reader-floors
Closed

moetemp wants to merge 7 commits into
moe/jetty/v2/t7-direct-readsfrom
moe/jetty/v2/t8-reader-floors

Conversation

@moetemp

@moetemp moetemp commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

This PR tracks reader floors during retention and size trimming. It also marks orphaned Local Activity writes for withdrawal in the prototype.

This layer belongs to the frozen Jetty server prototype. The active Streams contract has no close operation and does not require a server change.

Current Streams design and project plan.

Reviewer's guide

Review this as a frozen prototype. The active Streams API uses a separate contract.

  1. Start with chasm/lib/stream/readers.go. Reader identity and the lowest read offset determine which Records trimming must retain.
  2. Check retention and byte-limit tests alongside producer.go. Reader protection must not make writes from failed Local Activity tasks appear valid.

@moetemp moetemp changed the title [Jetty] Trimmed Workflow Streams down to the floors of their open readers. [Jetty] Trimmed Workflow Streams down to their open readers and withdrew orphaned Local Activity Records. Oct 22, 2026
@moetemp moetemp changed the title [Jetty] Trimmed Workflow Streams down to their open readers and withdrew orphaned Local Activity Records. Retain Records needed by open Jetty readers Nov 27, 2026
@moetemp moetemp closed this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant