Skip to content

Fix additional race condition that can cause P2P restart to deadlock - #8094

Merged
hendrikmakait merged 1 commit into
dask:mainfrom
hendrikmakait:fix-p2p-no-worker-race
Aug 11, 2023
Merged

hendrikmakait merged 1 commit into
dask:mainfrom
hendrikmakait:fix-p2p-no-worker-race

Conversation

@hendrikmakait

@hendrikmakait hendrikmakait commented Aug 10, 2023 •

Copy link
Copy Markdown
Member

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

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

@hendrikmakait
hendrikmakait requested a review from fjetter as a code owner August 10, 2023 17:57
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

cc @wence-

@hendrikmakait
hendrikmakait merged commit b3dde5c into dask:main Aug 11, 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.

P2P shuffle restart may deadlock if no running workers exist

2 participants