lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject [1/2] lucene-solr:jira/solr-11702: SOLR-11702: Hardness LIRRollingUpdatesTest
Date Wed, 24 Jan 2018 07:36:41 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/jira/solr-11702 4000cb94f -> eba1602ee


SOLR-11702: Hardness LIRRollingUpdatesTest


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/9c66cdf9
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9c66cdf9
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9c66cdf9

Branch: refs/heads/jira/solr-11702
Commit: 9c66cdf90f5659f5630250ccd98b748a2d56f169
Parents: 4000cb9
Author: Cao Manh Dat <datcm@apache.org>
Authored: Wed Jan 24 10:09:55 2018 +0700
Committer: Cao Manh Dat <datcm@apache.org>
Committed: Wed Jan 24 10:09:55 2018 +0700

----------------------------------------------------------------------
 .../src/test/org/apache/solr/cloud/LIRRollingUpdatesTest.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9c66cdf9/solr/core/src/test/org/apache/solr/cloud/LIRRollingUpdatesTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/LIRRollingUpdatesTest.java b/solr/core/src/test/org/apache/solr/cloud/LIRRollingUpdatesTest.java
index df8525b..a15406e 100644
--- a/solr/core/src/test/org/apache/solr/cloud/LIRRollingUpdatesTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/LIRRollingUpdatesTest.java
@@ -306,15 +306,14 @@ public class LIRRollingUpdatesTest extends SolrCloudTestCase {
     addDoc(collection, 6, leaderJetty);
     JettySolrRunner oldJetty = getJettyForReplica(replicaInOldMode);
     oldJetty.stop();
+    waitForState("Node did not leave", collection, (liveNodes, collectionState)
+        -> liveNodes.size() == 2);
     upgrade(oldJetty);
 
+    oldJetty.start();
     getProxyForReplica(leader).reopen();
     getProxyForReplica(replicaInOldMode).reopen();
 
-    waitForState("Node did not leave", collection, (liveNodes, collectionState)
-        -> liveNodes.size() == 2);
-    oldJetty.start();
-
     waitForState("Timeout waiting for recovering", collection, clusterShape(1, 3));
     assertDocsExistInAllReplicas(Arrays.asList(replicaInNewMode, replicaInOldMode), collection,
0, 6);
 


Mime
View raw message