You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2008/12/18 14:08:44 UTC
[jira] Updated: (SOLR-863) SolrCore.initIndex should close the
directory it gets for clearing the lock and use the DirectoryFactory
[ https://issues.apache.org/jira/browse/SOLR-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shalin Shekhar Mangar updated SOLR-863:
---------------------------------------
Attachment: SOLR-863.patch
Made sure we don't call close on a null dir. I plan to commit shortly.
> SolrCore.initIndex should close the directory it gets for clearing the lock and use the DirectoryFactory
> --------------------------------------------------------------------------------------------------------
>
> Key: SOLR-863
> URL: https://issues.apache.org/jira/browse/SOLR-863
> Project: Solr
> Issue Type: Bug
> Reporter: Mark Miller
> Priority: Trivial
> Fix For: 1.3.1
>
> Attachments: SOLR-863.patch, SOLR-863.patch
>
>
> Could put the close in a finally as well, but if you get an exception here I don't think your going anywhere anyway, so probably doesn't matter (it probably doesn't even matter that its not closed, but it should be).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.