Repository navigation
Fix an issue where a reconnecting worker could cause an invalid transition - #5210
Merged
mrocklin merged 2 commits intoAug 17, 2021
Merged
Conversation
jrbourbeau
reviewed
Aug 13, 2021
jrbourbeau
left a comment
Member
There was a problem hiding this comment.
Thanks @fjetter! It looks like this update is causing
distributed.core - ERROR - Exception while handling op register-worker
Traceback (most recent call last):
File "D:\a\distributed\distributed\distributed\core.py", line 502, in handle_comm
result = await result
File "distributed\scheduler.py", line 4172, in add_worker
with log_errors():
File "distributed\scheduler.py", line 4258, in distributed.scheduler.Scheduler.add_worker
assert isinstance(t, type)
AssertionErrorin CI
fjetter
force-pushed
the
worker_reconnect_can_break_scheduler
branch
from
August 16, 2021 14:18
f7de827 to
7a78601
Compare
Member
|
Checking in. What is the status here? |
Member
Author
|
good to go from my end |
jacobtomlinson
added a commit
to jacobtomlinson/dask
that referenced
this pull request
Aug 18, 2021
jacobtomlinson
added a commit
to dask/dask
that referenced
this pull request
Aug 18, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If a worker reconnects with a key in memory which was already released by the scheduler, this would raise an invalid transition keyerror and would break the scheduler causing yet another deadlock.
There was also a weird issue about the
typenamefunction called on an instance instead of a type heredistributed/distributed/worker.py
Line 922 in 17cd4db
would cause the type being submitted to be a
strof the data object, unless it's a native object like an integer in which case it works as expected. I figured it is safer to let typename handle this situation. Very difficult to test for this particular position in the code which is why I only left another validation assert