Skip to content
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

Fix P2P shuffle with LocalCluster(..., processes=False) #8125

Merged
merged 8 commits into from Aug 23, 2023

Conversation

hendrikmakait
Copy link
Member

@hendrikmakait hendrikmakait commented Aug 23, 2023

Closes dask/dask#10455

  • Tests added / passed
  • Passes pre-commit run --all-files

@github-actions
Copy link
Contributor

github-actions bot commented Aug 23, 2023

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

       21 files  ±  0         21 suites  ±0   11h 47m 43s ⏱️ + 20m 50s
  3 779 tests +  2    3 663 ✔️  -   6     108 💤 ±0  8 +8 
36 531 runs  +29  34 712 ✔️ +22  1 811 💤  - 1  8 +8 

For more details on these failures, see this check.

Results for commit 2a05649. ± Comparison against base commit acb2809.

♻️ This comment has been updated with latest results.

@@ -119,6 +119,9 @@ def get_or_create(
key: str,
Copy link
Member

@graingert graingert Aug 23, 2023

Choose a reason for hiding this comment

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

is the spec: type annotation incorrect? Should it be ToPickle[ShuffleSpec] | ShuffleSpec ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't mind adjusting this, I honestly don't care too much about typing for a case that shouldn't exist in the first place.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've adjusted typing.

@@ -119,6 +119,9 @@ def get_or_create(
key: str,
worker: str,
) -> ToPickle[ShuffleRunSpec]:
# FIXME: Sometimes, this doesn't actually get pickled
Copy link
Member

Choose a reason for hiding this comment

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

which times are sometimes? Can create an issue about this and link it?

Copy link
Member Author

Choose a reason for hiding this comment

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

My suspicion is that it's related to inproc://, but I've also seen this mentioned in other parts of the codebase, so I'm not sure about that. I was planning to investigate this soon(ish), but there are more pressing issues for now.

@hendrikmakait hendrikmakait merged commit 03ea2e1 into dask:main Aug 23, 2023
19 of 28 checks passed
@hendrikmakait hendrikmakait deleted the fix-shuffle-inproc branch August 23, 2023 15:22
crusaderky added a commit to crusaderky/dask that referenced this pull request Aug 29, 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.

dask/tests/test_distributed.py::test_map_partitions_df_input failing in CI
2 participants