You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2013/07/30 02:25:48 UTC

[jira] [Commented] (SOLR-5087) CoreAdminHandler.handleMergeAction generating NullPointerException

    [ https://issues.apache.org/jira/browse/SOLR-5087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13723190#comment-13723190 ] 

Mark Miller commented on SOLR-5087:
-----------------------------------

Looks good to me - there is a little back compat breakage in the merge command, but I think that's fine. Just calling it out in case anyone else has a concern there. 
                
> CoreAdminHandler.handleMergeAction generating NullPointerException
> ------------------------------------------------------------------
>
>                 Key: SOLR-5087
>                 URL: https://issues.apache.org/jira/browse/SOLR-5087
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.4
>            Reporter: Patrick Hunt
>            Assignee: Patrick Hunt
>             Fix For: 5.0, 4.5
>
>         Attachments: SOLR-5087.patch
>
>
> 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)
> {noformat}
> 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)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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