Skip to content

[DNM] Don't cancel futures on client reconnect - #5663

Closed
jrbourbeau wants to merge 1 commit into
dask:mainfrom
jrbourbeau:client-reconnect-cancel-futures
Closed

jrbourbeau wants to merge 1 commit into
dask:mainfrom
jrbourbeau:client-reconnect-cancel-futures

Conversation

@jrbourbeau

Copy link
Copy Markdown
Member

A user reported very unfortunate behavior due to a client canceling all its futures prior to attempting to reconnect back to a scheduler (which could be lost due to, for example, a network hiccup). We have an explicit test for this behavior

assert x.status == "cancelled"

but I'll admit it's not clear to me it's needed. This PR just comments out the future cancelling to see what else fails (if anything in CI)

@fjetter

fjetter commented Jan 18, 2022

Copy link
Copy Markdown
Member

when reconnecting to a different scheduler, the "old" futures need to be invalidated. this is what the cancellation is doing. simply removing it might introduce other subtle bugs.
At the same time, once the client disconnects, the scheduler will initiate a client_releases_keys for all the keys regardless. Just "not" cancelling them on client side won't help us much

@jrbourbeau

Copy link
Copy Markdown
Member Author

Thanks @fjetter. Closing in favor of a more complete solution for #5666 and #5667

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.

2 participants