Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 25233 invoked from network); 29 Mar 2009 18:11:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Mar 2009 18:11:13 -0000 Received: (qmail 96173 invoked by uid 500); 29 Mar 2009 18:11:12 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 96079 invoked by uid 500); 29 Mar 2009 18:11:12 -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 95894 invoked by uid 99); 29 Mar 2009 18:11:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Mar 2009 18:11:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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 Mar 2009 18:11:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C31F3234C046 for ; Sun, 29 Mar 2009 11:10:50 -0700 (PDT) Message-ID: <1658701703.1238350250798.JavaMail.jira@brutus> Date: Sun, 29 Mar 2009 11:10:50 -0700 (PDT) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-1579) Cloned SegmentReaders fail to share FieldCache entries In-Reply-To: <78278208.1238256290581.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless updated LUCENE-1579: --------------------------------------- Attachment: LUCENE-1579.patch New patch, even simpler. > Cloned SegmentReaders fail to share FieldCache entries > ------------------------------------------------------ > > Key: LUCENE-1579 > URL: https://issues.apache.org/jira/browse/LUCENE-1579 > Project: Lucene - Java > Issue Type: Bug > Components: Index > Affects Versions: 2.9 > Reporter: Michael McCandless > Assignee: Michael McCandless > Fix For: 2.9 > > Attachments: LUCENE-1579.patch, LUCENE-1579.patch, LUCENE-1579.patch > > > I just hit this on LUCENE-1516, which returns a cloned readOnly > readers from IndexWriter. > The problem is, when cloning, we create a new [thin] cloned > SegmentReader for each segment. FieldCache keys directly off this > object, so if you clone the reader and do a search that requires the > FieldCache (eg, sorting) then that first search is always very slow > because every single segment is reloading the FieldCache. > This is of course a complete showstopper for LUCENE-1516. > With LUCENE-831 we'll switch to a new FieldCache API; we should ensure > this bug is not present there. We should also fix the bug in the > current FieldCache API since for 2.9, users may hit this. -- 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