From b5ed21b258dc14fcd7441ae8fdc07703519adee8 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Tue, 17 Nov 2015 18:15:07 +0000 Subject: [PATCH] SOLR-7569 test failure fix git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1714842 13f79535-47bb-0310-9956-ffa450edef68 --- .../core/src/test/org/apache/solr/cloud/ForceLeaderTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/cloud/ForceLeaderTest.java b/solr/core/src/test/org/apache/solr/cloud/ForceLeaderTest.java index e2c8ee2e1a4..3a23c7201dc 100644 --- a/solr/core/src/test/org/apache/solr/cloud/ForceLeaderTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/ForceLeaderTest.java @@ -18,6 +18,7 @@ package org.apache.solr.cloud; */ import java.io.IOException; +import java.util.Arrays; import java.util.Collections; import java.util.List; @@ -381,8 +382,8 @@ public class ForceLeaderTest extends HttpPartitionTest { for (int j = 0; j < notLeaders.size(); j++) lirStates[j] = zkController.getLeaderInitiatedRecoveryState(collectionName, shard, notLeaders.get(j).getName()); for (State lirState : lirStates) - assertEquals("Expected that the LIR state would've been down by now", - Replica.State.DOWN, (lirState)); + assertTrue("Expected that the replicas would be in LIR state by now. LIR states: "+Arrays.toString(lirStates), + Replica.State.DOWN == lirState || Replica.State.RECOVERING == lirState); } protected void bringBackOldLeaderAndSendDoc(String collection, Replica leader, List notLeaders, int docid) throws Exception {