[TEST] fix explain API test to allow for either awaiting info state or
no valid shard copy
This commit is contained in:
parent
0d40608dc8
commit
47907b7093
|
@ -109,7 +109,8 @@ public final class ClusterAllocationExplainIT extends ESIntegTestCase {
|
||||||
// verify decision objects
|
// verify decision objects
|
||||||
assertTrue(allocateDecision.isDecisionTaken());
|
assertTrue(allocateDecision.isDecisionTaken());
|
||||||
assertFalse(moveDecision.isDecisionTaken());
|
assertFalse(moveDecision.isDecisionTaken());
|
||||||
assertEquals(AllocationDecision.NO_VALID_SHARD_COPY, allocateDecision.getAllocationDecision());
|
assertTrue(allocateDecision.getAllocationDecision() == AllocationDecision.NO_VALID_SHARD_COPY
|
||||||
|
|| allocateDecision.getAllocationDecision() == AllocationDecision.AWAITING_INFO);
|
||||||
assertEquals("cannot allocate because a previous copy of the primary shard existed but can no longer be " +
|
assertEquals("cannot allocate because a previous copy of the primary shard existed but can no longer be " +
|
||||||
"found on the nodes in the cluster", allocateDecision.getExplanation());
|
"found on the nodes in the cluster", allocateDecision.getExplanation());
|
||||||
assertNull(allocateDecision.getAllocationId());
|
assertNull(allocateDecision.getAllocationId());
|
||||||
|
|
Loading…
Reference in New Issue