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 8344571CC for ; Tue, 13 Dec 2011 14:04:04 +0000 (UTC) Received: (qmail 63441 invoked by uid 500); 13 Dec 2011 14:04:02 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 63373 invoked by uid 500); 13 Dec 2011 14:04:02 -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 63361 invoked by uid 99); 13 Dec 2011 14:04:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2011 14:04:02 +0000 X-ASF-Spam-Status: No, hits=-2001.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2011 14:03:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CF407110CB4 for ; Tue, 13 Dec 2011 14:03:30 +0000 (UTC) Date: Tue, 13 Dec 2011 14:03:30 +0000 (UTC) From: "Uwe Schindler (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <672658417.5744.1323785010850.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1749677291.5566.1323780930685.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3644) problems with IR's readerFinishedListener 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-3644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13168393#comment-13168393 ] Uwe Schindler commented on LUCENE-3644: --------------------------------------- I hate the whole thing, sorry. Please remove it,... completely. > problems with IR's readerFinishedListener > ----------------------------------------- > > Key: LUCENE-3644 > URL: https://issues.apache.org/jira/browse/LUCENE-3644 > Project: Lucene - Java > Issue Type: Bug > Reporter: Robert Muir > Fix For: 3.6, 4.0 > > > There are two major problems: > 1. The listener api does not really apply all indexreaders. for example segmentreaders dont fire it on close, only segmentcorereaders. this is wrong, a segmentcorereader is *not* an indexreader. Furthermore, if you register it on a top-level reader you get events for anything under the reader tree (sometimes, unless they are segmentreaders as mentioned above, where it doesnt work correctly at all). > 2. Furthermore your listener is 'passed along' in a viral fashion from clone() and reopen(). This means for example, if you are trying to listen to readers in NRT search you are just accumulating reader listeners, all potentially keeping references to old indexreaders (because, in order to deal with #1 your listener must 'keep' a reference to the IR it was registered on, so it can check if thats *really* the one). > We should discuss how to fix #1. > I will create a patch for #2 shortly and commit it, its just plain wrong. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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