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

CoreAdminHandler.handleMergeAction generating NullPointerException

    Details

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

      Description

      CoreAdminHandler.handleMergeAction is generating NullPointerException

      If directoryFactory.get(...) in handleMergeAction throws an exception the original error is lost as the finally clause will attempt to clean up and generate an NPE. (notice that "dirsToBeReleased" is pre-allocated with nulls that are not filled in)

      ERROR org.apache.solr.core.SolrCore: java.lang.NullPointerException
      at org.apache.solr.core.CachingDirectoryFactory.release(CachingDirectoryFactory.java:430)
      at org.apache.solr.handler.admin.CoreAdminHandler.handleMergeAction(CoreAdminHandler.java:380)
      at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:180)
      

        Attachments

          Activity

            People

            • Assignee:
              erickerickson Erick Erickson
              Reporter:
              phunt Patrick Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: