Skip to content

[data] Streaming executor fixes #2 - #32759

Merged
ericl merged 46 commits into
ray-project:masterfrom
jianoaix:streamingexecfix2
Feb 23, 2023
Merged

ericl merged 46 commits into
ray-project:masterfrom
jianoaix:streamingexecfix2

Conversation

@jianoaix

@jianoaix jianoaix commented Feb 22, 2023 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

  • Due to the .dataset_format() is hardcoded to default in streaming, the numpy is treated as a block type which is not supported
  • Issues caused by the partial execution of ds.take() in bulk execution (v.s. in streaming this is not handled by LazyBlocklist)
  • Issues of object ownership handling due to incorrect resolution when converting bundle to blocklist

#32132

Related issue number

Checks

if ray.data.context.DatasetContext.get_current().use_streaming_executor:
# In streaming execution of ds.iter_batches(), there is no partial
# execution so _num_computed() in LazyBlocklist is 0.
assert ds._plan.execute()._num_computed() == 0

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.

This is basically disabling this test. How about we just force it to use bulk executor instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This assertion still has value as it checks that streaming execution didn't run LazyBlocklist.

Comment thread python/ray/data/tests/test_dataset.py Resolved
@ericl
ericl merged commit 4c6d75b into ray-project:master Feb 23, 2023
edoakes pushed a commit to edoakes/ray that referenced this pull request Mar 22, 2023
peytondmurray pushed a commit to peytondmurray/ray that referenced this pull request Mar 22, 2023
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants