lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Assigned] (LUCENE-3083) MockRandomMergePolicy optimizes segments not in the Set passed in
Date Mon, 09 May 2011 12:22:03 GMT


Michael McCandless reassigned LUCENE-3083:

    Assignee: Michael McCandless

> MockRandomMergePolicy optimizes segments not in the Set passed in
> -----------------------------------------------------------------
>                 Key: LUCENE-3083
>                 URL:
>             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<SegmentInfo> 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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message