Skip to content

[8.18] Fix race condition in RestCancellableNodeClient (#126686) #126696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

DaveCTurner
Copy link
Contributor

Backports the following commits to 8.18:

Today we rely on registering the channel after registering the task to
be cancelled to ensure that the task is cancelled even if the channel is
closed concurrently. However the client may already have processed a
cancellable request on the channel and therefore this mechanism doesn't
work. With this change we make sure not to register another task after
draining the registrations in order to cancel them.

Closes elastic#88201
@DaveCTurner DaveCTurner added :Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Distributed Coordination Meta label for Distributed Coordination team labels Apr 11, 2025
@elasticsearchmachine elasticsearchmachine merged commit d04357b into elastic:8.18 Apr 11, 2025
15 checks passed
@DaveCTurner DaveCTurner deleted the backport/8.18/pr-126686 branch April 11, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. Team:Distributed Coordination Meta label for Distributed Coordination team v8.18.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants