You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2013/06/10 15:46:22 UTC

[jira] [Updated] (LUCENE-5050) CompressingStoredFieldsReader should close the index file as soon as it has been read

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

Adrien Grand updated LUCENE-5050:
---------------------------------

    Attachment: LUCENE-5050.patch

Here is a patch which closes the index file in the constructor for both CompressingStoredFieldsReader and CompressingTermVectorsReader.
                
> CompressingStoredFieldsReader should close the index file as soon as it has been read
> -------------------------------------------------------------------------------------
>
>                 Key: LUCENE-5050
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5050
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: 4.3.1
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 5.0, 4.4
>
>         Attachments: LUCENE-5050.patch
>
>
> Although CompressingStoredFieldsReader loads the stored fields index into memory, it only closes the index file in {{close()}}. Closing at the end of the constructor should help save file descriptors.
> The same idea applies to CompressingTermVectorsReader.

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