Skip to content

React more promptly to task cancellation while waiting for the cluster to unblock #117971

@nielsbauman

Description

@nielsbauman

Both in TransportLocalClusterStateAction and TransportMasterNodeAction we wait for the cluster to unblock. Currently, if a task gets cancelled while waiting, we don't send a response until the cluster gets unblocked (which could be arbitrarily far in the future) or until the timeout occurs. We should make use of CancellableTask#addListener to react more promptly to task cancellation.

Follow-up from #117230 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions