Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76ECC1088C for ; Mon, 10 Jun 2013 13:46:28 +0000 (UTC) Received: (qmail 26470 invoked by uid 500); 10 Jun 2013 13:46:23 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 26318 invoked by uid 500); 10 Jun 2013 13:46:22 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 26294 invoked by uid 99); 10 Jun 2013 13:46:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jun 2013 13:46:22 +0000 Date: Mon, 10 Jun 2013 13:46:22 +0000 (UTC) From: "Adrien Grand (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LUCENE-5050) CompressingStoredFieldsReader should close the index file as soon as it has been read MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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