lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Sokolov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-5895) JavaBinLoader hides IOExceptions
Date Fri, 21 Mar 2014 15:00:52 GMT
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message