Skip to content

[Data] Dequeue zero-row bundles from input metrics after rebundling - #68666

Open
Pengkun-ZHU wants to merge 1 commit into
ray-project:masterfrom
Pengkun-ZHU:fix/rebundler-empty-input-accounting
Open

Pengkun-ZHU wants to merge 1 commit into
ray-project:masterfrom
Pengkun-ZHU:fix/rebundler-empty-input-accounting

Conversation

@Pengkun-ZHU

@Pengkun-ZHU Pengkun-ZHU commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

In RebundleQueue.add(), the zero-row branch buffers or merges the input, then returns before recording it in _curr_consumed_bundles. As a result, get_next_with_original() returns the correct task input but an incomplete list of originals. The same issue occurs when finalize() flushes a batch containing only zero-row inputs.

Related issues

Fix #68665.

Additional information

@Pengkun-ZHU
Pengkun-ZHU requested a review from a team as a code owner November 30, 2026 07:32

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

Copy link
Copy Markdown
Contributor

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 updates the bundler to ensure that all original input bundles, including empty (zero-row) bundles, are tracked in _curr_consumed_bundles so they can be properly dequeued by metrics. The corresponding unit test in test_bundler.py has been updated to verify this behavior. There are no review comments to address, and I have no additional feedback to provide.

@Pengkun-ZHU Pengkun-ZHU changed the title Dequeue zero-row bundles from input metrics after rebundling [Data] Dequeue zero-row bundles from input metrics after rebundling Nov 30, 2026
@ray-gardener ray-gardener Bot added data Ray Data-related issues community-contribution Contributed by the community labels Nov 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community data Ray Data-related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Data] Map operator input metrics retain zero-row bundles after dispatch

1 participant