You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2015/03/06 19:57:39 UTC

[jira] [Commented] (SOLR-7204) Improve error handling in create collection API

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org