Skip to content

[Data] Fix attribute error in UnionOperator.clear_internal_output_queue#60538

Merged
bveeramani merged 1 commit intomasterfrom
fix-union-bug
Jan 27, 2026
Merged

[Data] Fix attribute error in UnionOperator.clear_internal_output_queue#60538
bveeramani merged 1 commit intomasterfrom
fix-union-bug

Conversation

@bveeramani
Copy link
Member

#60017 and #60228 refactored the FIFOBundleQueue interface and renamed FIFOBundleQueue.popleft with FIFOBundleQueue.get_next. However, this name change wasn't reflected in the UnionOperator implementation, and as a result the operator can error when it clears its output queue.

This change also fixes the flaky test_union.py.

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
@bveeramani bveeramani requested a review from a team as a code owner January 27, 2026 18:25
Copy link
Contributor

@iamjustinhsu iamjustinhsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@bveeramani bveeramani enabled auto-merge (squash) January 27, 2026 18:29
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Jan 27, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request fixes an AttributeError in UnionOperator.clear_internal_output_queue by replacing a call to the non-existent popleft method with the correct get_next method on FIFOBundleQueue. This change is a direct consequence of a previous refactoring and is necessary for correctness, especially during error handling and cleanup where this method is invoked. The fix is correct and addresses the issue described. The code looks good.

@bveeramani bveeramani merged commit 03ac292 into master Jan 27, 2026
5 of 7 checks passed
@bveeramani bveeramani deleted the fix-union-bug branch January 27, 2026 19:08
@ray-gardener ray-gardener bot added the data Ray Data-related issues label Jan 27, 2026
jinbum-kim pushed a commit to jinbum-kim/ray that referenced this pull request Jan 29, 2026
…eue` (ray-project#60538)

ray-project#60017 and
ray-project#60228 refactored the
`FIFOBundleQueue` interface and renamed `FIFOBundleQueue.popleft` with
`FIFOBundleQueue.get_next`. However, this name change wasn't reflected
in the `UnionOperator` implementation, and as a result the operator can
error when it clears its output queue.

This change also fixes the flaky `test_union.py`.

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: jinbum-kim <jinbum9958@gmail.com>
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jan 29, 2026
…eue` (ray-project#60538)

ray-project#60017 and
ray-project#60228 refactored the
`FIFOBundleQueue` interface and renamed `FIFOBundleQueue.popleft` with
`FIFOBundleQueue.get_next`. However, this name change wasn't reflected
in the `UnionOperator` implementation, and as a result the operator can
error when it clears its output queue.

This change also fixes the flaky `test_union.py`.

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Feb 1, 2026
…eue` (ray-project#60538)

ray-project#60017 and
ray-project#60228 refactored the
`FIFOBundleQueue` interface and renamed `FIFOBundleQueue.popleft` with
`FIFOBundleQueue.get_next`. However, this name change wasn't reflected
in the `UnionOperator` implementation, and as a result the operator can
error when it clears its output queue.

This change also fixes the flaky `test_union.py`.

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: 400Ping <jiekaichang@apache.org>
ans9868 pushed a commit to ans9868/ray that referenced this pull request Feb 18, 2026
…eue` (ray-project#60538)

ray-project#60017 and
ray-project#60228 refactored the
`FIFOBundleQueue` interface and renamed `FIFOBundleQueue.popleft` with
`FIFOBundleQueue.get_next`. However, this name change wasn't reflected
in the `UnionOperator` implementation, and as a result the operator can
error when it clears its output queue.

This change also fixes the flaky `test_union.py`.

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: Adel Nour <ans9868@nyu.edu>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
…eue` (ray-project#60538)

ray-project#60017 and
ray-project#60228 refactored the
`FIFOBundleQueue` interface and renamed `FIFOBundleQueue.popleft` with
`FIFOBundleQueue.get_next`. However, this name change wasn't reflected
in the `UnionOperator` implementation, and as a result the operator can
error when it clears its output queue.

This change also fixes the flaky `test_union.py`.

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: peterxcli <peterxcli@gmail.com>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
…eue` (ray-project#60538)

ray-project#60017 and
ray-project#60228 refactored the
`FIFOBundleQueue` interface and renamed `FIFOBundleQueue.popleft` with
`FIFOBundleQueue.get_next`. However, this name change wasn't reflected
in the `UnionOperator` implementation, and as a result the operator can
error when it clears its output queue.

This change also fixes the flaky `test_union.py`.

Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: peterxcli <peterxcli@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data Ray Data-related issues go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants