Sporadic failure in testForceStaleReplicaToBePromotedToPrimary #35497
Labels
:Distributed Indexing/Recovery
Anything around constructing a new shard, either from a local or a remote source.
>test-failure
Triaged test failures from CI
#34140 introduces an assertion in
PrimaryAllocationIT#testForceStaleReplicaToBePromotedToPrimary
that sometimes fails. See for instance https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+multijob-unix-compatibility/os=fedora/56/console:I think the issue is that we allocate a stale or empty primary via a reroute command, then grab the cluster state, and then assert that the in-sync IDs in that cluster state are what they should be straight after the reroute. However, if the shard has actually been allocated by the time we get hold of the cluster state then this assertion fails.
@vladimirdolzhenko could you take a look?
The text was updated successfully, but these errors were encountered: