lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [3/6] lucene-solr:jira/solr-11285: SOLR-11285: Some exceptions are wrapped now.
Date Tue, 03 Oct 2017 11:26:31 GMT
SOLR-11285: Some exceptions are wrapped now.


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

Branch: refs/heads/jira/solr-11285
Commit: 0c60ea3aaa69cd07acb2c1dbcfc425fb61612f9a
Parents: c2c878d
Author: Andrzej Bialecki <ab@apache.org>
Authored: Mon Oct 2 14:14:34 2017 +0200
Committer: Andrzej Bialecki <ab@apache.org>
Committed: Mon Oct 2 14:14:34 2017 +0200

----------------------------------------------------------------------
 .../test/org/apache/solr/cloud/DeleteInactiveReplicaTest.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/0c60ea3a/solr/core/src/test/org/apache/solr/cloud/DeleteInactiveReplicaTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/DeleteInactiveReplicaTest.java b/solr/core/src/test/org/apache/solr/cloud/DeleteInactiveReplicaTest.java
index 8f8731b..0f4ff48 100644
--- a/solr/core/src/test/org/apache/solr/cloud/DeleteInactiveReplicaTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/DeleteInactiveReplicaTest.java
@@ -84,8 +84,9 @@ public class DeleteInactiveReplicaTest extends SolrCloudTestCase {
     CoreContainer cc = jetty.getCoreContainer();
     CoreContainer.CoreLoadFailure loadFailure = cc.getCoreInitFailures().get(replica.getCoreName());
     assertNotNull("Deleted core was still loaded!", loadFailure);
-    assertTrue("Unexpected load failure message: " + loadFailure.exception.getMessage(),
-        loadFailure.exception.getMessage().contains("does not exist in shard"));
+    assertNotNull(loadFailure.exception.getCause());
+    assertTrue("Unexpected load failure message: " + loadFailure.exception.getCause().getMessage(),
+        loadFailure.exception.getCause().getMessage().contains("does not exist in shard"));
 
     // Check that we can't create a core with no coreNodeName
     try (SolrClient queryClient = getHttpSolrClient(jetty.getBaseUrl().toString())) {


Mime
View raw message