Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 2301 invoked from network); 29 Nov 2009 11:09:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Nov 2009 11:09:44 -0000 Received: (qmail 24184 invoked by uid 500); 29 Nov 2009 11:09:43 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 24108 invoked by uid 500); 29 Nov 2009 11:09:43 -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 24100 invoked by uid 99); 29 Nov 2009 11:09:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Nov 2009 11:09:43 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Nov 2009 11:09:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D4442234C052 for ; Sun, 29 Nov 2009 03:09:20 -0800 (PST) Message-ID: <876364039.1259492960854.JavaMail.jira@brutus> Date: Sun, 29 Nov 2009 11:09:20 +0000 (UTC) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-2097) In NRT mode, and CFS enabled, IndexWriter incorrectly ties up disk space In-Reply-To: <543446741.1259492840642.JavaMail.jira@brutus> 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-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless updated LUCENE-2097: --------------------------------------- Attachment: LUCENE-2097.patch Attached patch with test case that shows the issue. Not yet sure what's the best way to fix it... probably we have to build the CFS before opening the reader we want to pool. > In NRT mode, and CFS enabled, IndexWriter incorrectly ties up disk space > ------------------------------------------------------------------------ > > Key: LUCENE-2097 > URL: https://issues.apache.org/jira/browse/LUCENE-2097 > Project: Lucene - Java > Issue Type: Bug > Components: Index > Affects Versions: 2.9, 2.9.1, 3.0 > Reporter: Michael McCandless > Assignee: Michael McCandless > Priority: Minor > Fix For: 3.1 > > Attachments: LUCENE-2097.patch > > > Spinoff of java-user thread titled "searching while optimize"... > If IndexWriter is in NRT mode (you've called getReader() at least > once), and CFS is enabled, then internally the writer pools readers. > However, after a merge completes, it opens the reader against het > non-CFS segment files, and pools that. It then builds the CFS file, > as well, thus tying up the storage for that segment twice. > Functionally the bug is harmless (it's only a disk space issue). > Also, when the segment is merged, the disk space is released again > (though the newly merged segment will also be double-tied-up). > Simple workaround is to use non-CFS mode, or, don't use getReader. -- 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