You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2017/03/11 03:45:25 UTC

lucene-solr:jira/solr-9835: SOLR-9835: Fix assertion bug

Repository: lucene-solr
Updated Branches:
  refs/heads/jira/solr-9835 c2bab81fc -> e1f5297ab


SOLR-9835: Fix assertion bug


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

Branch: refs/heads/jira/solr-9835
Commit: e1f5297ab7773aec0d53c81aeb0b14403d1ebcc4
Parents: c2bab81
Author: Cao Manh Dat <da...@apache.org>
Authored: Sat Mar 11 08:30:11 2017 +0700
Committer: Cao Manh Dat <da...@apache.org>
Committed: Sat Mar 11 08:30:11 2017 +0700

----------------------------------------------------------------------
 .../src/test/org/apache/solr/cloud/OnlyLeaderIndexesTest.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/e1f5297a/solr/core/src/test/org/apache/solr/cloud/OnlyLeaderIndexesTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/OnlyLeaderIndexesTest.java b/solr/core/src/test/org/apache/solr/cloud/OnlyLeaderIndexesTest.java
index f014c30..d0be5b9 100644
--- a/solr/core/src/test/org/apache/solr/cloud/OnlyLeaderIndexesTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/OnlyLeaderIndexesTest.java
@@ -221,8 +221,10 @@ public class OnlyLeaderIndexesTest extends SolrCloudTestCase {
         .process(cloudClient, COLLECTION);
     try {
       checkRTG(1, 1, cluster.getJettySolrRunners());
-      fail("Doc1 is deleted but it's still exist");
-    } catch (AssertionError e) {}
+    } catch (AssertionError e) {
+      return;
+    }
+    fail("Doc1 is deleted but it's still exist");
   }
 
   public void basicLeaderElectionTest() throws Exception {