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 additional race condition that can cause P2P restart to deadlock #8094

Merged
merged 1 commit into from Aug 11, 2023

Conversation

hendrikmakait
Copy link
Member

@hendrikmakait hendrikmakait commented Aug 10, 2023

Closes #8088
Follow-up to #8091
Race condition description: #8088 (comment)

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

Comment on lines +451 to +459
await async_poll_for(lambda: len(s.running) == 1, timeout=5)
b.close_gracefully()
await b.process.process.kill()

while s.running:
await asyncio.sleep(0.01)
await async_poll_for(lambda: not s.running, timeout=5)

a.status = Status.running

while not s.running:
await asyncio.sleep(0.01)
pass
await async_poll_for(lambda: s.running, timeout=5)
Copy link
Member Author

Choose a reason for hiding this comment

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

These changes are merely for easier debugging.

@github-actions
Copy link
Contributor

Unit Test Results

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

       20 files  ±       0         20 suites  ±0   12h 21m 26s ⏱️ + 1h 14m 27s
  3 764 tests  -        2    3 650 ✔️  -        1     106 💤  -   2    8 +1 
36 412 runs  +1 252  34 652 ✔️ +1 210  1 750 💤 +40  10 +2 

For more details on these failures, see this check.

Results for commit ffd3a1b. ± Comparison against base commit 163165b.

This pull request removes 2 tests.
distributed.cli.tests.test_dask_worker.test_listen_address_ipv6[tcp:..[ ‑ 1]:---nanny]
distributed.cli.tests.test_dask_worker.test_listen_address_ipv6[tcp:..[ ‑ 1]:---no-nanny]

@hendrikmakait
Copy link
Member Author

cc @wence-

@hendrikmakait hendrikmakait merged commit b3dde5c into dask:main Aug 11, 2023
19 of 28 checks passed
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.

P2P shuffle restart may deadlock if no running workers exist
2 participants