Skip to content

Store Jetty Producers and reader floors in CHASM nodes - #100

Closed
moetemp wants to merge 5 commits into
moe/jetty/v2/t11-owner-checksfrom
moe/jetty/v2/t12-state-nodes
Closed

moetemp wants to merge 5 commits into
moe/jetty/v2/t11-owner-checksfrom
moe/jetty/v2/t12-state-nodes

Conversation

@moetemp

@moetemp moetemp commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

This PR moves per-Producer state, run facts and reader floors into separate CHASM data nodes. The Stream root retains the minimum floor for trimming.

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/state.go, then readers.go and producer.go. Check state lookup and removal across the separate CHASM nodes.
  2. Compare the cached reader floor with trimming decisions. Removing a reader or Producer must not discard Records still needed by another reader.

Each is a data node, so an append writes the entries it touches and not the whole table. At the
cap a Local Activity's entry goes first, and a closed Activity's entry goes in its own run.
…ate-nodes

# Conflicts:
#	chasm/lib/stream/producer.go
…ate-nodes

# Conflicts:
#	chasm/lib/stream/producer.go
#	chasm/lib/stream/stream_test.go
@moetemp moetemp changed the title [Jetty] Moved Producers, runs and floors out of the root Stream state. Store Jetty Producers and reader floors in CHASM nodes 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