You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2018/07/09 11:14:00 UTC

[jira] [Commented] (LUCENE-8391) Better tests for merge policies

    [ https://issues.apache.org/jira/browse/LUCENE-8391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16536793#comment-16536793 ] 

Adrien Grand commented on LUCENE-8391:
--------------------------------------

Here is a patch with two tests in {{BaseMergePolicyTestCase}}. One simulates what happens when appending data to an index, and the other one simulates updates that are uniformly distributed across segments based on the number of documents that they contain. Each merge policy can decide what invariants it wants to validate. These tests currently fail with TieredMergePolicy because of LUCENE-8383, LUCENE-8385 and LUCENE-8392.

> Better tests for merge policies
> -------------------------------
>
>                 Key: LUCENE-8391
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8391
>             Project: Lucene - Core
>          Issue Type: Test
>            Reporter: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-8391.patch
>
>
> Testing merge policies was hard in the past because it could only be done by setting up and IndexWriter, adding documents and making sure that merges behave as expected. The fact that MergePolicy doesn't need an IndexWriter anymore (LUCENE-8330) should make things easier since we should now be able to simulate merges without having to create an index.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org