[TEST] an active shard might also be relocating
This commit is contained in:
parent
1816951b6b
commit
2c07588a1a
|
@ -261,7 +261,7 @@ public class CorruptedFileTest extends ElasticsearchIntegrationTest {
|
|||
if (routing.getId() == shardRouting.getId()) {
|
||||
assertThat(routing.state(), equalTo(ShardRoutingState.UNASSIGNED));
|
||||
} else {
|
||||
assertThat(routing.state(), equalTo(ShardRoutingState.STARTED));
|
||||
assertThat(routing.state(), anyOf(equalTo(ShardRoutingState.RELOCATING), equalTo(ShardRoutingState.STARTED)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue