[ 
https://issues.apache.org/jira/browse/SOLR-3570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Willnauer updated SOLR-3570:
----------------------------------

    Attachment: SOLR-3570.patch

patch, closing the input stream in the Suggestor and adds additional safety to 
FileDictionary in the case of an error we close the stream internally.
                
> Release Resource Stream in Suggestor 
> -------------------------------------
>
>                 Key: SOLR-3570
>                 URL: https://issues.apache.org/jira/browse/SOLR-3570
>             Project: Solr
>          Issue Type: Improvement
>          Components: spellchecker
>    Affects Versions: 3.6, 4.0, 5.0
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>             Fix For: 4.0, 3.6.1, 5.0
>
>         Attachments: SOLR-3570.patch
>
>
> Currently the Suggestor doesn't release the resource stream if a file 
> dictionary is loaded. The FileDictionary implemenation closes the stream but 
> only if we exhaust the stream entirely. Yet, we should close this on the 
> consumer side too. double close is no harm.

--
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]

Reply via email to