-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[Data] Replace number of bundles with proper number of blocks #58030
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 is a good step towards making block counting more accurate by explicitly using the number of blocks instead of assuming one block per bundle. The refactoring is applied across many files. However, I've found a few critical issues where the new counting logic is implemented incorrectly, which could lead to bugs in metrics, backpressure, and autoscaling. I've also included some minor suggestions for improving code style and efficiency.
python/ray/data/_internal/execution/operators/union_operator.py
Outdated
Show resolved
Hide resolved
.../ray/data/_internal/execution/backpressure_policy/downstream_capacity_backpressure_policy.py
Show resolved
Hide resolved
python/ray/data/_internal/execution/operators/base_physical_operator.py
Outdated
Show resolved
Hide resolved
…bundle Signed-off-by: Alexey Kudinkin <[email protected]>
… num bytes held inside internal queue; Revisited `InternalQueueOperatorMixin.internal_queue_size` to remove assumption that every bundle holds just 1 block Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
bb87078 to
ea982b3
Compare
Description
Currently, we implicitly assume that
RefBundleholds exactly 1 block. That's not a safe assumption, and this change is addressing that by explicitly referring to number of blocks insteadRelated issues
Additional information