Repository navigation
Conversation
k2 gives a ref the owner fields of a Standalone Activity and keeps the Workflow write fields, which Jetty's handles and creates send (S118).
The native server checks an Activity Producer against the Activity's current attempt, so nobody else writes as that Activity, with no stamp setting (S114).
The server nests the Stream in the Activity and closes it when the Activity ends, so nothing stays open. Redis has no such close, so it refuses (S118). One native plugin on two clients calls each on its own connection (bug 10).
…ken. The server checks a Standalone Activity's create by its owner Producer and its task token together, and k2 sent one or the other (S118).
…tive-takeovers Brook's Activity close check also lets a Standalone Activity close the Stream it owns (S114, S118).
The early owner check lets only a Local Activity of the chain or the owning Activity close, so the test shows the Activity's close and not the server's.
…tive-takeovers An Activity's close sends its task token with Brook's close ref, which names the chain of a handle that has only an id.
The server takes at most 2 MiB in one append, below the crate's 4 MiB, so a merge that the codec grew between the two failed as a whole on native.
The native server finds a Workflow's Stream only by both owner fields, so a close that named the Activity's chain with no first run id was invalid there.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR sends Activity task tokens with native writes and adds Streams owned by Standalone Activities. The native server closes those Streams when their Activity ends.
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.
temporalio/contrib/streams/_activity.pyand_activity_stream.py. Check the task token for each Activity attempt and the selected owner.tests/contrib/streams/test_native_server.pywith server validation. Client-side token forwarding alone does not establish authorization or closure.