Skip to content

Keep native Jetty Records out of Workflow History - #356

Closed
moetemp wants to merge 21 commits into
moe/jetty/v2/j4-examplesfrom
moe/jetty/v2/j5-direct-reads
Closed

moetemp wants to merge 21 commits into
moe/jetty/v2/j4-examplesfrom
moe/jetty/v2/j5-direct-reads

Conversation

@moetemp

@moetemp moetemp commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

This PR records native read positions in History and reads Records again during replay. The native Store must retain the recorded range. Redis reads keep their page data in History.

This is a frozen Jetty prototype. See the Brook design and Python implementation for current work.

The November review inspected the source and existing test coverage. It did not rerun the frozen native server stack.

Reviewer's guide

This is a frozen prototype. Review current Streams behavior in the Python implementation.

  1. Start with temporalio/contrib/streams/native.py. Compare the recorded range with the cold replay request after the page cache is cleared.
  2. Check tests/contrib/streams/test_workflow_reads.py for range mismatches. Native replay requires retained Records, while this layer still records Redis page contents in History.

…eads

# Conflicts:
#	temporalio/contrib/streams/_writer.py
…eads

The read codec reads again on the runtime of its client, and a Replayer reads on a runtime of a client of the plugin, since each client has its own (S123).
@moetemp moetemp changed the title [Jetty] Read native Streams in Workflow code with no Records in History. Keep native Jetty Records out of Workflow History 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