Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5895

JavaBinLoader hides IOExceptions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7.1, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      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

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

      to

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

      on line 99 in JavaBinLoader.java

        Attachments

          Activity

            People

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              sokolov Mike Sokolov
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: