Mike Sokolov created SOLR-5895:
----------------------------------

             Summary: JavaBinLoader hides IOExceptions
                 Key: SOLR-5895
                 URL: https://issues.apache.org/jira/browse/SOLR-5895
             Project: Solr
          Issue Type: Bug
            Reporter: Mike Sokolov


An IOException raised during analysis is swallowed by JavabinLoader, so the 
underlying cause is not visible in the logs, or to the client.  Proposed fix is 
to change

{code}
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "ERROR adding 
document " + document);
{code}

to

{code}
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "ERROR adding 
document " + document, e);
{code}

on line 99 in JavaBinLoader.java



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to