Skip to content

Bound parked Jetty reads and stored Record bytes - #98

Closed
moetemp wants to merge 5 commits into
moe/jetty/v2/t9-close-fixesfrom
moe/jetty/v2/t10-reads
Closed

moetemp wants to merge 5 commits into
moe/jetty/v2/t9-close-fixesfrom
moe/jetty/v2/t10-reads

Conversation

@moetemp

@moetemp moetemp commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

This PR gives parked wake reads a namespace deadline and limits stored bytes. Last-page reads support resuming from the end of a native Stream.

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/read.go. Check wake deadlines, page byte limits, and rejection of newest-Record reads from Workflow code.
  2. Then read readers.go and the reset-floor tests. Replay ranges need protection even when a reset starts before the current reader position.

An idle Workflow reader now costs no History each minute. A page tells its reader to continue
as new when its floor keeps half the cap, and a reset run's floor covers its copied reads.
A replay reads a past-close page again with to_offset at its next offset, which is its start, and
got no Record. The closed branch now goes before the to_offset check.
@moetemp moetemp changed the title [Jetty] Let wakes park for days, and added last reads and a byte cap. Bound parked Jetty reads and stored Record bytes 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