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

CoreAdminHandler.handleMergeAction generating NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.4
    • 4.5, 6.0
    • None
    • 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

        1. SOLR-5087.patch
          13 kB
          Patrick D. Hunt

        Activity

          People

            erickerickson Erick Erickson
            phunt Patrick D. Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: