You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2015/04/13 15:06:26 UTC

svn commit: r1673177 - in /lucene/dev/branches/branch_5x: ./ solr/ solr/CHANGES.txt solr/core/ solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java

Author: shalin
Date: Mon Apr 13 13:06:25 2015
New Revision: 1673177

URL: http://svn.apache.org/r1673177
Log:
SOLR-7384: Fix spurious failures in FullSolrCloudDistribCmdsTest

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/solr/   (props changed)
    lucene/dev/branches/branch_5x/solr/CHANGES.txt   (contents, props changed)
    lucene/dev/branches/branch_5x/solr/core/   (props changed)
    lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java
    lucene/dev/branches/branch_5x/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java

Modified: lucene/dev/branches/branch_5x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/CHANGES.txt?rev=1673177&r1=1673176&r2=1673177&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_5x/solr/CHANGES.txt Mon Apr 13 13:06:25 2015
@@ -74,6 +74,8 @@ Other Changes
 * SOLR-7381: Improve logging by adding node name in MDC in SolrCloud mode and adding MDC to
   all thread pools. (shalin)
 
+* SOLR-7384: Fix spurious failures in FullSolrCloudDistribCmdsTest. (shalin)
+
 ==================  5.1.0 ==================
 
 Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release

Modified: lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java?rev=1673177&r1=1673176&r2=1673177&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java (original)
+++ lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java Mon Apr 13 13:06:25 2015
@@ -178,8 +178,6 @@ public class HttpShardHandler extends Sh
   public void submit(final ShardRequest sreq, final String shard, final ModifiableSolrParams params) {
     // do this outside of the callable for thread safety reasons
     final List<String> urls = getURLs(sreq, shard);
-    if (Strings.isNullOrEmpty(shard))
-      System.out.println("Empty shard!");
 
     Callable<ShardResponse> task = new Callable<ShardResponse>() {
       @Override

Modified: lucene/dev/branches/branch_5x/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java?rev=1673177&r1=1673176&r2=1673177&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java (original)
+++ lucene/dev/branches/branch_5x/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java Mon Apr 13 13:06:25 2015
@@ -175,6 +175,8 @@ public class FullSolrCloudDistribCmdsTes
       assertTrue(status.get("QTime") > 0);
     }
 
+    waitForRecoveriesToFinish("implicit_collection_without_routerfield", true);
+
     SolrClient shard1 = createNewSolrClient("implicit_collection_without_routerfield_shard1_replica1",
         getBaseUrl((HttpSolrClient) clients.get(0)));
     SolrClient shard2 = createNewSolrClient("implicit_collection_without_routerfield_shard2_replica1",
@@ -302,6 +304,8 @@ public class FullSolrCloudDistribCmdsTes
       assertTrue(status.get("QTime") > 0);
     }
 
+    waitForRecoveriesToFinish("compositeid_collection_with_routerfield", true);
+
     SolrClient shard1 = createNewSolrClient("compositeid_collection_with_routerfield_shard1_replica1",
         getBaseUrl((HttpSolrClient) clients.get(0)));
     SolrClient shard2 = createNewSolrClient("compositeid_collection_with_routerfield_shard2_replica1",