lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r1629107 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/LeaderInitiatedRecoveryOnCommitTest.java
Date Fri, 03 Oct 2014 03:41:02 GMT
Author: shalin
Date: Fri Oct  3 03:41:01 2014
New Revision: 1629107

URL: http://svn.apache.org/r1629107
Log:
SOLR-6530: Reopen the socket proxy after test finishes

Modified:
    lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/LeaderInitiatedRecoveryOnCommitTest.java

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/LeaderInitiatedRecoveryOnCommitTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/LeaderInitiatedRecoveryOnCommitTest.java?rev=1629107&r1=1629106&r2=1629107&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/LeaderInitiatedRecoveryOnCommitTest.java
(original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/LeaderInitiatedRecoveryOnCommitTest.java
Fri Oct  3 03:41:01 2014
@@ -100,6 +100,9 @@ public class LeaderInitiatedRecoveryOnCo
     leader = cloudClient.getZkStateReader().getLeaderRetry(testCollectionName, "shard1");
     assertEquals("Leader was not active", "active", leader.getStr("state"));
 
+    leaderProxy.reopen();
+    Thread.sleep(sleepMsBeforeHealPartition);
+
     // try to clean up
     try {
       CollectionAdminRequest req = new CollectionAdminRequest.Delete();
@@ -139,6 +142,9 @@ public class LeaderInitiatedRecoveryOnCo
     leader = cloudClient.getZkStateReader().getLeaderRetry(testCollectionName, "shard1");
     assertEquals("Leader was not active", "active", leader.getStr("state"));
 
+    leaderProxy.reopen();
+    Thread.sleep(sleepMsBeforeHealPartition);
+
     // try to clean up
     try {
       CollectionAdminRequest req = new CollectionAdminRequest.Delete();



Mime
View raw message