You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
P2P shuffle restart may deadlock if no running workers exist #8088
An edge case exists where attempting to restart a P2P shuffle may deadlock.
In this scenario, there are some non-running workers holding inputs to the shuffle, but no more running workers when the shuffle is restarted. This will cause a processingshuffle-transfer to transition processing -> released -> waiting -> waiting -> no-worker -> released. The task will then remain stuck in released, causing a deadlock.
There are two possible ways of fixing this:
Carefully design the restarting mechanism to avoid this transition chain.
Recommend waiting when transitioning a task no-worker -> released if it has tasks or clients waiting on its results (similar to the processing -> released and waiting -> released.
Activity
hendrikmakait commentedon Aug 10, 2023
There's another race hidden in this edge case that causes the new test to flake due to a problem with the transition logic: