Skip to content

Streaming executor fixes #4 - #32882

Merged
ericl merged 45 commits into
ray-project:masterfrom
jianoaix:streamingexecfix4
Mar 1, 2023
Merged

ericl merged 45 commits into
ray-project:masterfrom
jianoaix:streamingexecfix4

Conversation

@jianoaix

@jianoaix jianoaix commented Feb 28, 2023 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

The streaming doesn't preserve order by default, so the results comparison will need to use set instead of list.

#32132

Related issue number

Checks

@@ -127,7 +127,11 @@ def test_new_execution_backend_invocation(ray_start_10_cpus_shared):
DatasetContext.get_current().new_execution_backend = True

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 test is called test_bulk_executor so shall we just force bulk execution mode 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.

Makes sense!

@jianoaix

Copy link
Copy Markdown
Contributor Author

Failing tests seem not related.

Comment on lines +387 to +393
ds = ds1.zip(ds2).fully_executed()
num_blocks = ds._plan._snapshot_blocks.executed_num_blocks()
assert ds.take() == [{str(i): i for i in range(num_cols1 + num_cols2)}] * n
if should_invert:
assert ds.num_blocks() == num_blocks2
assert num_blocks == num_blocks2
else:
assert ds.num_blocks() == num_blocks1
assert num_blocks == num_blocks1

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.

curious as #32860 is merged, would the change here is still needed?

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.

Have you tested that PR with streaming enabled for this test? Also note this is to handle issue introduced in #32132.

@ericl

ericl commented Feb 28, 2023

Copy link
Copy Markdown
Contributor

Test failures

@ericl
ericl merged commit 2875357 into ray-project:master Mar 1, 2023
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request Mar 21, 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
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 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