Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 3873 invoked from network); 16 Aug 2007 15:39:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Aug 2007 15:39:57 -0000 Received: (qmail 30866 invoked by uid 500); 16 Aug 2007 15:39:53 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 30202 invoked by uid 500); 16 Aug 2007 15:39:51 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 30186 invoked by uid 99); 16 Aug 2007 15:39:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 08:39:51 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 15:40:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E1FD9714204 for ; Thu, 16 Aug 2007 08:39:30 -0700 (PDT) Message-ID: <25015883.1187278770920.JavaMail.jira@brutus> Date: Thu, 16 Aug 2007 08:39:30 -0700 (PDT) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-978) GC resources in TermInfosReader when exception occurs in its constructor In-Reply-To: <8007562.1187191172531.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520273 ] Michael McCandless commented on LUCENE-978: ------------------------------------------- Agreed. Actually, it also looks like we need to do something similar for FieldsReader/TermVectorsReader too? > GC resources in TermInfosReader when exception occurs in its constructor > ------------------------------------------------------------------------ > > Key: LUCENE-978 > URL: https://issues.apache.org/jira/browse/LUCENE-978 > Project: Lucene - Java > Issue Type: Bug > Components: Index > Reporter: Ning Li > Priority: Minor > Attachments: TermInfosReader.patch > > > I replaced IndexModifier with IndexWriter in test case TestStressIndexing and noticed the test failed from time to time because some .tis file is still open when MockRAMDirectory.close() is called. It turns out it is because .tis file is not closed if an exception occurs in TermInfosReader's constructor. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org