lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-5050) CompressingStoredFieldsReader should close the index file as soon as it has been read
Date Mon, 10 Jun 2013 13:46:22 GMT

     [ 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


Mime
View raw message