[
https://issues.apache.org/jira/browse/SOLR-3699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hoss Man updated SOLR-3699:
---------------------------
Attachment: SOLR-3699.patch
My quick and dirty attempt to fix this by making SolrIndexWriter's constructor
private and adding a static "create" method that deals with calling
directoryFactory.release() if the private constructor fails.
Unfortunately it's still not working ... not clear to me why, but i'm about to
get on a plain and won't have a chance to dig into it anymore for another 3-4
days, so i wanted to get what i have into Jira in case anyone else wants to
take a stab at it.
> SolrIndexWriter constructor leaks Directory if Exception creating
> IndexWriterConfig
> -----------------------------------------------------------------------------------
>
> Key: SOLR-3699
> URL: https://issues.apache.org/jira/browse/SOLR-3699
> Project: Solr
> Issue Type: Bug
> Reporter: Robert Muir
> Fix For: 4.0, 5.0
>
> Attachments: SOLR-3699.patch, SOLR-3699.patch
>
>
> in LUCENE-4278 i had to add a hack to force SimpleFSDir for
> CoreContainerCoreInitFailuresTest, because it doesnt close its Directory on
> certain errors.
> This might indicate a problem that leaks happen if certain errors happen
> (e.g. not handled in finally)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]