[ 
https://issues.apache.org/jira/browse/SOLR-3989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yonik Seeley resolved SOLR-3989.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 4.1

I committed the simplest/safest fix to just wrap the caught throwable in the 
RuntimeException.
                
> RuntimeException thrown by SolrZkClient should wrap cause, have a message, or 
> be SolrException
> ----------------------------------------------------------------------------------------------
>
>                 Key: SOLR-3989
>                 URL: https://issues.apache.org/jira/browse/SOLR-3989
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java
>    Affects Versions: 4.0
>            Reporter: Colin Bartolome
>             Fix For: 4.1
>
>
> In a few spots, but notably in the constructor for SolrZkClient, a try-catch 
> block will catch Throwable and throw a new RuntimeException with no cause or 
> message. Either the RuntimeException should wrap the Throwable that was 
> caught, some sort of message should be added, or the type of the exception 
> should be changed to SolrException so calling code can catch these exceptions 
> without casting too broad of a net.
> Reproduce this by creating a CloudSolrServer that points to a URL that is 
> valid, but has no server running:
> CloudSolrServer server = new CloudSolrServer("localhost:9983");
> server.connect();

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to