Skip to content

Fix inconsistent hashing when using multiprocessing - #6660

Merged
mrocklin merged 1 commit into
dask:masterfrom
itamarst:groupby-6640
Sep 29, 2020
Merged

mrocklin merged 1 commit into
dask:masterfrom
itamarst:groupby-6640

Conversation

@itamarst

Copy link
Copy Markdown
Contributor
  • Tests added / passed
  • Passes black dask / flake8 dask

Fixes #6640

Includes the tests written by @lazarillo

Comment thread conftest.py Resolved
Comment thread dask/bag/core.py Resolved
@mrocklin

Copy link
Copy Markdown
Member

Thank you for the fix @itamarst . I appreciate it.

Includes the tests written by @lazarillo

I think that the tests here are great, but personally I would remove the fixture (it seems like overkill and isn't used anyway) and the TODOs. It might be cleaner to remove the original commits and copy-paste in the test code?

@itamarst

Copy link
Copy Markdown
Contributor Author

OK I think I managed to convince git to make this not have TODOs in history.

@itamarst

Copy link
Copy Markdown
Contributor Author

Just to reiterate my concern from the original issue: won't the Distributed backend suffer from the same bug?

@mrocklin

Copy link
Copy Markdown
Member

Just to reiterate my concern from the original issue: won't the Distributed backend suffer from the same bug?

Thank you for reiterating your concern. I agree that this might be an issue. Would you be interested in checking? Presumably the same tests here would help us to understand if things were to fail. If they do fail then maybe the place to add this change is in distributed/process.py just before the line that includes mp_context.Process(?

@mrocklin

Copy link
Copy Markdown
Member

Thanks for the fix @itamarst and for identifying the problem @lazarillo . Merging this in.

@mrocklin
mrocklin merged commit f20eded into dask:master Sep 29, 2020
@itamarst

itamarst commented Oct 1, 2020

Copy link
Copy Markdown
Contributor Author

I can try out Distributed, yes.

@itamarst

itamarst commented Oct 1, 2020

Copy link
Copy Markdown
Contributor Author

Distributed does have the same bug. Trying to figure out a fix.

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.

groupby does not seem to work for non-numerics

3 participants