-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fix ignored tests in the desired-balance feature branch #91305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ignored tests in the desired-balance feature branch #91305
Conversation
| } | ||
|
|
||
| @AwaitsFix(bugUrl = "TODO") | ||
| public void testRestoreIndexWithShardsMissingInLocalGateway() throws Exception { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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()) | ||
| ) |
There was a problem hiding this comment.
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?
|
Pinging @elastic/es-distributed (Team:Distributed) |
DaveCTurner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.