Apache Lucene open-source search software
SOLR-3989: SolrZkClient constructor dropped exception cause when throwing a new RuntimeException
Yonik Seeley8d047adbb9e1
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 1cf039bc0b4..54c2533ee12 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -176,6 +176,10 @@ Bug Fixesleader process, the SolrCore will not correctly rejoin the election.(Po Rui Via Mark Miller)+* SOLR-3989: SolrZkClient constructor dropped exception cause when throwing+ a new RuntimeException. (Colin Bartolome, yonik)++Other Changes----------------------diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java b/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.javaindex ed7dfbf38ac..0cc59a96a60 100644--- a/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java@@ -112,14 +112,14 @@ public class SolrZkClient {});} catch (Throwable e) {connManager.close();- throw new RuntimeException();+ throw new RuntimeException(e);}try {connManager.waitForConnected(clientConnectTimeout);} catch (Throwable e) {connManager.close();- throw new RuntimeException();+ throw new RuntimeException(e);}numOpens.incrementAndGet();}