Skip to content

[7.17] Ensure tasks with banned parents always get cancelled (#90188)#90248

Merged
elasticsearchmachine merged 1 commit intoelastic:7.17from
pxsalehi:ps220922-cpick-90188
Sep 22, 2022
Merged

[7.17] Ensure tasks with banned parents always get cancelled (#90188)#90248
elasticsearchmachine merged 1 commit intoelastic:7.17from
pxsalehi:ps220922-cpick-90188

Conversation

@pxsalehi
Copy link
Copy Markdown
Member

Cherry-pick #90188

The check used to entirely skip parent lookup relies on
ConcurrentHashMap#isEmpty() which could return inconsistent results, and
potentially skip the cancellation of a task with a banned parent upon
registration, and it doesn't seem to have a benefit considering the hash
code computation.

Closes elastic#88201
@pxsalehi pxsalehi added >test Issues or PRs that are addressing/adding tests :Distributed/Task Management Issues for anything around the Tasks API - both persistent and node level. backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Sep 22, 2022
@elasticsearchmachine elasticsearchmachine merged commit 83c19ae into elastic:7.17 Sep 22, 2022
@pxsalehi pxsalehi deleted the ps220922-cpick-90188 branch September 22, 2022 12:03
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 :Distributed/Task Management Issues for anything around the Tasks API - both persistent and node level. >test Issues or PRs that are addressing/adding tests v7.17.7

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants