Skip to content

Conversation

@idegtiarenko
Copy link
Contributor

No description provided.

@idegtiarenko idegtiarenko added :Distributed Coordination/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. labels Nov 4, 2022
@idegtiarenko idegtiarenko changed the base branch from main to feature/desired-balance-allocator November 4, 2022 09:53
}

@AwaitsFix(bugUrl = "TODO")
public void testRestoreIndexWithShardsMissingInLocalGateway() throws Exception {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Executed this 250 times. No failures so far

}

@AwaitsFix(bugUrl = "TODO")
public void testNoRebalanceOnRollingRestart() throws Exception {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test was broken as we were not detecting delayed shards as ignored

shardRouting -> Stream.of(
shardRouting,
shardRouting.updateUnassigned(discardAllocationStatus(shardRouting.unassignedInfo()), shardRouting.recoverySource())
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Related to #90600

In some cases the allocation status is coming from GatewayAllocator and need to be reseted to NO_ATTEMPT to be able to find the ignored shard in others (NO_VALID_SHARD_COPY) it is kept as is.

I wonder if this indicates that we want to have some other way of identifying ignored shards bypassing its entire state and unassigned info?

@idegtiarenko idegtiarenko marked this pull request as ready for review November 4, 2022 12:39
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM

@idegtiarenko idegtiarenko merged commit 13c48d5 into elastic:feature/desired-balance-allocator Nov 4, 2022
@idegtiarenko idegtiarenko deleted the fix_ignored_tests branch November 4, 2022 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants