Repository navigation
Add ChannelMarker support on pyAmber - #3245
Merged
Merged
Conversation
Yicong-Huang
reviewed
Feb 6, 2025
aglinxinyuan
approved these changes
Feb 17, 2025
aglinxinyuan
left a comment
Contributor
There was a problem hiding this comment.
LGTM!
We have already discussed the future plan of changing ChannelMarker to ControlMessage offline. This can be done in separate PRs.
shengquan-ni
added a commit
that referenced
this pull request
Feb 20, 2025
This PR fixes a bug introduced by #3245. Since we are now forcing channel-level message handling on Python, the source operator's kickstart message needs a special port and channel so that the internal processing logic can recognize it.
Ma77Ball
pushed a commit
that referenced
this pull request
Apr 2, 2025
This PR: 1. Added ChannelMarkerManager to track and align ChannelMarkers on the Python side. 2. Now messages to Python also attach ChannelIdentity to distinguish different channels, previously we used ActorVirtualIdentity. 3. Due to the ChannelIdentity change, the generated proto message on Python side has to assign the `is_control` field explicitly, otherwise its hash is not consistent. To give an example: ``` channel_id = ChannelIdentity(from_worker_id = ..., to_worker_id = ...) new_channel_id = bytes(channel_id) assert hash(channel_id) == hash(new_channel_id) // this will fail. ``` 4. The InputQueue now also uses channel ID as a key, instead of using 2 fixed keys: CONTROL, DATA. --------- Co-authored-by: Xinyuan Lin <[email protected]>
Ma77Ball
pushed a commit
that referenced
this pull request
Apr 2, 2025
This PR fixes a bug introduced by #3245. Since we are now forcing channel-level message handling on Python, the source operator's kickstart message needs a special port and channel so that the internal processing logic can recognize it.
aglinxinyuan
added a commit
that referenced
this pull request
May 15, 2025
Before sending a ChannelMarker, we must verify whether the active channel falls within the marker's scope. In Python, this check always returns False, and as a result, the ChannelMarker is never sent downstream. This occurs because ChannelIdentity instances on the Python side lack the is_control field, and their hash values are inconsistent — as noted in PR #3245.
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
This PR: 1. Added ChannelMarkerManager to track and align ChannelMarkers on the Python side. 2. Now messages to Python also attach ChannelIdentity to distinguish different channels, previously we used ActorVirtualIdentity. 3. Due to the ChannelIdentity change, the generated proto message on Python side has to assign the `is_control` field explicitly, otherwise its hash is not consistent. To give an example: ``` channel_id = ChannelIdentity(from_worker_id = ..., to_worker_id = ...) new_channel_id = bytes(channel_id) assert hash(channel_id) == hash(new_channel_id) // this will fail. ``` 4. The InputQueue now also uses channel ID as a key, instead of using 2 fixed keys: CONTROL, DATA. --------- Co-authored-by: Xinyuan Lin <[email protected]>
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
This PR fixes a bug introduced by apache#3245. Since we are now forcing channel-level message handling on Python, the source operator's kickstart message needs a special port and channel so that the internal processing logic can recognize it.
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
Before sending a ChannelMarker, we must verify whether the active channel falls within the marker's scope. In Python, this check always returns False, and as a result, the ChannelMarker is never sent downstream. This occurs because ChannelIdentity instances on the Python side lack the is_control field, and their hash values are inconsistent — as noted in PR apache#3245.
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
This PR: 1. Added ChannelMarkerManager to track and align ChannelMarkers on the Python side. 2. Now messages to Python also attach ChannelIdentity to distinguish different channels, previously we used ActorVirtualIdentity. 3. Due to the ChannelIdentity change, the generated proto message on Python side has to assign the `is_control` field explicitly, otherwise its hash is not consistent. To give an example: ``` channel_id = ChannelIdentity(from_worker_id = ..., to_worker_id = ...) new_channel_id = bytes(channel_id) assert hash(channel_id) == hash(new_channel_id) // this will fail. ``` 4. The InputQueue now also uses channel ID as a key, instead of using 2 fixed keys: CONTROL, DATA. --------- Co-authored-by: Xinyuan Lin <[email protected]>
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
This PR fixes a bug introduced by apache#3245. Since we are now forcing channel-level message handling on Python, the source operator's kickstart message needs a special port and channel so that the internal processing logic can recognize it.
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
Before sending a ChannelMarker, we must verify whether the active channel falls within the marker's scope. In Python, this check always returns False, and as a result, the ChannelMarker is never sent downstream. This occurs because ChannelIdentity instances on the Python side lack the is_control field, and their hash values are inconsistent — as noted in PR apache#3245.
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:
is_controlfield explicitly, otherwise its hash is not consistent.To give an example: