[ 
https://issues.apache.org/jira/browse/SOLR-7204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14350710#comment-14350710
 ] 

Mark Miller commented on SOLR-7204:
-----------------------------------

Looks like the problem is in HdfsLock:

{noformat}
        } catch (IOException e) {
          log.error("Error creating lock file", e);
          return false;
        }
{noformat}

We should look at either just throwing an exception here or somehow relaying 
out the IOException as the root cause in some manner rather than just logging 
it and returning we couldn't get the lock.

> Improve error handling in create collection API
> -----------------------------------------------
>
>                 Key: SOLR-7204
>                 URL: https://issues.apache.org/jira/browse/SOLR-7204
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.10.3
>            Reporter: Hrishikesh Gadre
>            Priority: Minor
>
> I was trying to create a collection on a Solrcloud deployed along with 
> kerberized Hadoop cluster. I kept on getting following error,
> org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error 
> CREATEing SolrCore 'orders_shard1_replica2': Unable to create core 
> [orders_shard1_replica2] Caused by: Lock obtain timed out: 
> org.apache.solr.store.hdfs.HdfsLockFactory$HdfsLock@451997e1
> On careful analysis of logs, I realized it was due to Solr not being able to 
> talk to HDFS properly because of following error,
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> We should improve the error handling such that we return the root-cause of 
> the error (in this case SSLHandshakeException instead of lock timeout 
> exception).
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to