You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:Distributed/RecoveryAnything around constructing a new shard, either from a local or a remote source.>test-failureTriaged test failures from CITeam:DistributedMeta label for distributed team.needs:riskRequires assignment of a risk label (low, medium, blocker)
org.gradle.internal.exceptions.DefaultMultiCauseException: Multiple Failures (3 failures)
java.lang.AssertionError: safeAwait: CountDownLatch did not reach zero within the timeout
java.lang.AssertionError: timed out waiting for relocation
Expected: <false>
but: was <true>
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=1250, name=elasticsearch[node_t1][generic][T#2], state=RUNNABLE, group=TGRP-IndexingShardRelocationIT]
Issue Reasons:
[9.5] 1 consecutive failures in test testPreferredNodeIdsAreUsedDuringRelocation
[9.5] 1 consecutive failures in step openjdk21_checkpart2_java-matrix
[9.5] 1 consecutive failures in pipeline elasticsearch-periodic
Note:
This issue was created using new test triage automation. Please report issues or feedback to es-core-infra.
Likely a timing/race flake in the test's relocation choreography (IndexingShardRelocationIT.testPreferredNodeIdsAreUsedDuringRelocation, x-pack stateless). The test blocks START_RELOCATION, refreshes, and then waits on several CountDownLatches (safeAwait). One timed out, followed by "timed out waiting for relocation" and an uncaught exception on node_t1[generic]. This is probably an assertion thrown inside a mock-transport handler, or a notification that never arrived.
Only one failure so far (9.5 periodic); I could not retrieve the full failure output, so the exact latch that stalled is unknown.
Release risk: low-risk
Test-only choreography with mock transport handlers. There's a single occurrence and it did not reproduce. It would go up if the uncaught exception turns out to be a production-path error, such as a wrong preferred node id or a failed chunk fetch during relocation.
Reproduction verdict: the pass with the identical seed and commit fits a race or load-dependent flake. It lowers confidence in any specific mechanism.
Codebase investigation: the test installs request-handling behaviours on the search node and on both index nodes. It then awaits sourceNotificationReceived, sourceGetChunkRequestReceived and targetNotificationReceived. Assertions inside the handlers (assertThat(notification.getNodeId()...), term checks) run on transport threads. A failure there surfaces as the uncaught exception and leaves the latches un-counted, so the safeAwait times out. The failure message shows this cascade.
Recent git history: not examined in depth.
Proposed fix: fetch the first failure (the uncaught exception stack) from the scan or the test report to see which handler assertion fired. Then either fix the production behaviour (if the preferred node id is wrong in a legitimate interleaving), or harden the test. Hardening means recording handler assertion failures and surfacing them where the awaits happen, and not assuming that generation beforeGeneration notifications arrive in a fixed order. Validate with -Dtests.iters=100 on the seed and random seeds, then close the issue.
Effort estimate: small — the cause is local to one test, once the stack trace is known.
Confidence: 0.40 (medium) — only a single occurrence, no reproduction, and the uncaught exception detail was not available.
Generated by test-analysis · archimedes v1.5.2 · agent-router/claude-sonnet-5-5
:Distributed/RecoveryAnything around constructing a new shard, either from a local or a remote source.>test-failureTriaged test failures from CITeam:DistributedMeta label for distributed team.needs:riskRequires assignment of a risk label (low, medium, blocker)
Activity
elasticsearchmachine commentedon Dec 6, 2026
Pinging @elastic/es-distributed (Team:Distributed)
infra-vault-gh-plugin-prod commentedon Dec 6, 2026
This has been muted on branch 9.5
Mute Reasons:
Muted tasks:
:x-pack:plugin:stateless:internalClusterTestBuild Scans:
Mute org.elasticsearch.xpack.stateless.recovery.IndexingShardRelocati…
elasticsearchmachine commentedon Dec 6, 2026
Test Failure Analysis
Summary
IndexingShardRelocationIT.testPreferredNodeIdsAreUsedDuringRelocation, x-pack stateless). The test blocksSTART_RELOCATION, refreshes, and then waits on severalCountDownLatches (safeAwait). One timed out, followed by "timed out waiting for relocation" and an uncaught exception onnode_t1[generic]. This is probably an assertion thrown inside a mock-transport handler, or a notification that never arrived.Release risk: low-risk
Impact
muted-tests.yml.Reproduction
./gradlew ":x-pack:plugin:stateless:internalClusterTest" --tests "org.elasticsearch.xpack.stateless.recovery.IndexingShardRelocationIT.testPreferredNodeIdsAreUsedDuringRelocation" -Dtests.seed=8A2D3DE9CCB45DF3 -Dtests.locale=ne-Deva-NP -Dtests.timezone=America/St_Lucia -Druntime.java=21Mitigation Proposal
sourceNotificationReceived,sourceGetChunkRequestReceivedandtargetNotificationReceived. Assertions inside the handlers (assertThat(notification.getNodeId()...), term checks) run on transport threads. A failure there surfaces as the uncaught exception and leaves the latches un-counted, so thesafeAwaittimes out. The failure message shows this cascade.beforeGenerationnotifications arrive in a fixed order. Validate with-Dtests.iters=100on the seed and random seeds, then close the issue.