Better exception if scheduler disconnects from client #8690
Labels
diagnostics
enhancement
Improve existing functionality or make things work better
scheduler
stability
Issue or feature related to cluster stability (e.g. deadlock)
If the connection between scheduler and client is lost (e.g. if the scheduler dies) this triggers a reconnect loop on the client to reestablish the connection. If the scheduler is still alive, users will not notice this failure except they are working with previously created
Future
s. Those futures are cancelled automatically as soon as the client is initiating a reconnect (see here).If that
Future
is used the next time, this raises aCancelledError(<key>)
without further context and it is frequently unclear for users what this exactly means.Instead, the user should receive an informative message telling them to check on their scheduler.
This issue is particularly troublesome if the user is not working with futures directly but the futures are embedded in a persisted collection which renders the entire collection unusable.
The text was updated successfully, but these errors were encountered: