Skip to content

Conversation

@DiannaHohensee
Copy link
Contributor

@DiannaHohensee DiannaHohensee commented Jul 24, 2025

Ensure that the cluster has a stably elected master node
when the test completes so that the post-test tear-down
check for cluster state consistency across nodes can
succeed.

Closes #131562

@DiannaHohensee DiannaHohensee self-assigned this Jul 24, 2025
@DiannaHohensee DiannaHohensee added >test Issues or PRs that are addressing/adding tests :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 v9.2.0 labels Jul 24, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination)

@DiannaHohensee DiannaHohensee force-pushed the 2025/07/23/test-fix-131562 branch from daf8ebc to 784014f Compare July 24, 2025 16:20
Ensure that the cluster has a stably elected master node
when the test completes so that the post-test tear-down
check for cluster state consistency can succeed.

Closes elastic#131562
@DiannaHohensee DiannaHohensee force-pushed the 2025/07/23/test-fix-131562 branch from 784014f to d6e1883 Compare July 24, 2025 16:20
Copy link
Contributor

@joshua-adams-1 joshua-adams-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

allowEntireRequest(rootRequest);
cancelFuture.actionGet();
ensureBansAndCancellationsConsistency();
// This method will call the cluster health API with wait_for_tasks set to Priority#LANGUID. This will ensure that all tasks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you run this test X times to verify this indeed fixes any race conditions? (Only that since we've unmuted the test, it would be silly if it failed again in two days)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for checking. I realize that the context isn't all there in the git issue: some of the discussion occurred in slack.

I just went ahead and ran it successfully locally on my machine a dozen or so times. It's hard to confirm, since failures usually occur under stressed concurrency conditions.

@DiannaHohensee DiannaHohensee merged commit 46ce911 into elastic:main Aug 5, 2025
33 checks passed
szybia added a commit to szybia/elasticsearch that referenced this pull request Aug 6, 2025
…cking

* upstream/main: (24 commits)
  Revert "[Fleet] add privileges to `kibana_system` to read integrations data (elastic#132400)" (elastic#132499)
  ESQL: Rename evaluators for FIRST and LAST (elastic#132466)
  Add inference fields to semantic text docs (elastic#132471)
  ESQL: Allow FIRST and LAST as method name (elastic#132469)
  ESQL: Add javadoc for PushDownAndCombineFilters (elastic#132484)
  Misc cleanups in Coordinator (elastic#132452)
  [DiskBBQ] Write the maximum posting list size to avoid resizing the docId array (elastic#132447)
  Improve exception handling for JsonXContentParser (elastic#123439)
  Clarify quantization on semantic_text BBQ dense vector default (elastic#132470)
  Fix test infra NPE in doEnsureClusterStateConsistency (elastic#131859)
  Stabilize CancellableTasksIT#testRemoveBanParentsOnDisconnect (elastic#131858)
  Move ClusterApplierService assertion after logging exception (elastic#132446)
  ESQL: Support for multi-argument aggs (elastic#132424)
  Update wolfi (versioned) (elastic#132457)
  ESQL: Fix Function javadoc (elastic#132399)
  [ML] Inference API disable partial search results (elastic#132362)
  Unmute testTermsQuery tests (elastic#132409)
  Fix index lookup when field-caps returns empty mapping (elastic#132138)
  CompressorFactory.compressor (elastic#132448)
  ESQL add formatting to plans in javadoc (elastic#132421)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

: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 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] CancellableTasksIT testRemoveBanParentsOnDisconnect failing

3 participants