Skip to content
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

Broadcast cancellation to only nodes have outstanding child tasks #54779

Closed
wants to merge 4 commits into from

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Apr 6, 2020

Backport #54312

…astic#54312)

Today when canceling a task we broadcast ban/unban requests to all nodes
in the cluster. This strategy does not scale well for hierarchical
cancellation. With this change, we will track outstanding child requests
and broadcast the cancellation to only nodes that have outstanding child
tasks. This change also prevents a parent task from sending child
requests once it got canceled.

Relates elastic#50990
Supersedes elastic#51157

Co-authored-by: Igor Motov <[email protected]>
Co-authored-by: Yannick Welsch <[email protected]>
@dnhatn dnhatn added the backport label Apr 6, 2020
@dnhatn
Copy link
Member Author

dnhatn commented Apr 6, 2020

Pushed to 7.x

@dnhatn dnhatn closed this Apr 6, 2020
@dnhatn dnhatn deleted the 7x-task-cancel branch April 6, 2020 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant