Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 55868 invoked from network); 1 Jun 2010 20:35:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jun 2010 20:35:03 -0000 Received: (qmail 60206 invoked by uid 500); 1 Jun 2010 20:35:02 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 60157 invoked by uid 500); 1 Jun 2010 20:35: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 60150 invoked by uid 99); 1 Jun 2010 20:35:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 20:35:02 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 20:35:00 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o51KYbXI023705 for ; Tue, 1 Jun 2010 20:34:38 GMT Message-ID: <3795849.115021275424477852.JavaMail.jira@thor> Date: Tue, 1 Jun 2010 16:34:37 -0400 (EDT) From: "Earwin Burrfoot (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2311) Pass potent SR to IRWarmer.warm(), and also call warm() for new segments 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-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12874224#action_12874224 ] Earwin Burrfoot commented on LUCENE-2311: ----------------------------------------- This is not the issue of reader turnaround. This is the issue of code clarity. >From the user's standpoint warming up a new-from-scratch segment and warming up just-merged segment is the same action. The difference of what happens in which thread, and what blocks/doesn't block reopen is totally Lucene-internal API-wise. Now you're forcing people to make this distinction and do absolutely identical warming-up action in two very different places. Moreover, when warming up a new reader from reopen(), they have to get new segments and then discern which ones of them were flushed, and which were merged, to avoid warming them up twice. I think there is no hurry to push the fix for this into 2.9.3. As of now this feature is broken. There is absolutely no way you can make it work. Thus, there are no applications that are suffering. Thus, not releasing the fix with 2.9.3, does not multiply suffering under the sun :) Thus, no need to hurry up and fix this at least somehow instead of doing this properly. > Pass potent SR to IRWarmer.warm(), and also call warm() for new segments > ------------------------------------------------------------------------ > > Key: LUCENE-2311 > URL: https://issues.apache.org/jira/browse/LUCENE-2311 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Reporter: Earwin Burrfoot > Assignee: Michael McCandless > Fix For: 2.9.3, 3.0.2, 3.1, 4.0 > > Attachments: LUCENE-2311.patch, LUCENE-2311.patch > > > Currently warm() receives a SegmentReader without terms index and docstores. > It would be arguably more useful for the app to receive a fully loaded reader, so it can actually fire up some caches. If the warmer is undefined on IW, we probably leave things as they are. > It is also arguably more concise and clear to call warm() on all newly created segments, so there is a single point of warming readers in NRT context, and every subreader coming from getReader is guaranteed to be warmed up -> you don't have to introduce even more mess in your code by rechecking it. -- 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org