Ma77Ball opened a new pull request, #5031:
URL: https://github.com/apache/texera/pull/5031
### What changes were proposed in this PR?
`ChannelConfig.generateChannelConfigs` previously used
`fromWorkerIds.zip(toWorkerIds)` for the `OneToOnePartition` arm, which
silently truncated to the shorter side and dropped surplus workers even though
the partition's
contract is a strict 1:1 pairing. This PR adds an
`assert(fromWorkerIds.size == toWorkerIds.size, ...)` precondition (mirroring
the `SinglePartition` arm in the same file) so mismatched inputs fail loudly
with a message that
names both sizes.
### Any related issues, documentation, or discussions?
Closes: #4799
### How was this PR tested?
The existing `ChannelConfigSpec` case that pinned the truncation behavior
is flipped to assert an `AssertionError` is raised in both asymmetric
directions (`from > to` and `to > from`). The equal-length, empty-input, and
other
partition arms are unchanged and still pass. Reproducer from the report
(`from=3, to=2`) now throws instead of returning a 2-element list.
### Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.7 in compliance with ASF
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]