[TEST] only check node decisions if not in the AWAITING_INFO state
@@ -122,6 +122,8 @@ public final class ClusterAllocationExplainIT extends ESIntegTestCase {
assertNull(allocateDecision.getTargetNode());
assertEquals(0L, allocateDecision.getConfiguredDelayInMillis());
assertEquals(0L, allocateDecision.getRemainingDelayInMillis());
+
+ if (allocateDecision.getAllocationDecision() == AllocationDecision.NO_VALID_SHARD_COPY) {
assertEquals(0, allocateDecision.getNodeDecisions().size());
// verify JSON output
@@ -139,6 +141,7 @@ public final class ClusterAllocationExplainIT extends ESIntegTestCase {
assertEquals(Token.END_OBJECT, parser.nextToken());
}
}
+ }
public void testUnassignedReplicaDelayedAllocation() throws Exception {
logger.info("--> starting 3 nodes");
