Skip to content

Conversation

DaveCTurner
Copy link
Contributor

Backports the following commits to 8.17:

These tests set `closeListener` racily, such that it's possible to see
it still be `null` in `TestHttpChannel#close()`. This commit replaces it
with a `SubscribableListener` so that we always complete the subscribed
listener regardless of order.

It also fixes a separate race in `testCompletedTasks` where (very
rarely) all of the `client.execute` calls had completed their listener
without getting to the point where they'd subscribed a `closeListener`.

Closes elastic#128057
@DaveCTurner DaveCTurner added :Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. >test Issues or PRs that are addressing/adding tests 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 May 15, 2025
@elasticsearchmachine elasticsearchmachine merged commit b959023 into elastic:8.17 May 15, 2025
15 checks passed
@DaveCTurner DaveCTurner deleted the backport/8.17/pr-128085 branch May 15, 2025 17:24
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 Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. Team:Distributed Coordination Meta label for Distributed Coordination team >test Issues or PRs that are addressing/adding tests v8.17.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants