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 EDECA45EE for ; Mon, 9 May 2011 12:22:43 +0000 (UTC) Received: (qmail 26284 invoked by uid 500); 9 May 2011 12:22:42 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 26220 invoked by uid 500); 9 May 2011 12:22:42 -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 26213 invoked by uid 99); 9 May 2011 12:22:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 May 2011 12:22:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Mon, 09 May 2011 12:22:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1B9EFC812D for ; Mon, 9 May 2011 12:22:03 +0000 (UTC) Date: Mon, 9 May 2011 12:22:03 +0000 (UTC) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Message-ID: <1680557105.32213.1304943723109.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <18082842.32157.1304941563161.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (LUCENE-3083) MockRandomMergePolicy optimizes segments not in the Set passed in 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-3083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless reassigned LUCENE-3083: ------------------------------------------ Assignee: Michael McCandless > MockRandomMergePolicy optimizes segments not in the Set passed in > ----------------------------------------------------------------- > > Key: LUCENE-3083 > URL: https://issues.apache.org/jira/browse/LUCENE-3083 > Project: Lucene - Java > Issue Type: Bug > Reporter: Uwe Schindler > Assignee: Michael McCandless > > The test class MockRandomMergePolicy shuffles the whole SegmentInfos passed to the optimize callback and returns random segments for optimizing. This is fine, but it also returns segments, that are not listed in the Set that is also passed in, containing the subset of segments to optimize. > This bug was found when writing a testcase for LUCENE-3082: The wrapper MergePolicy (when wrapped around MockRandomMergePolicy) only passes a subset of the segments to the delegate (the ones that are in old index format). But MockRandom created OneMerge in its return MergeSpecification having segments outside this set. -- This message is automatically generated by JIRA. 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