[ 
https://issues.apache.org/jira/browse/LUCENE-8330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Rowe reopened LUCENE-8330:
--------------------------------

My Jenkins found a reproducing seed for a test introduced on this issue:

{noformat}
Checking out Revision 6bbce38b77d5850f2d62d62fe87254e2ac8bd447 
(refs/remotes/origin/master)
[...]
  [junit4] Suite: org.apache.lucene.index.TestUpgradeIndexMergePolicy
  [junit4]   2> NOTE: reproduce with: ant test  
-Dtestcase=TestUpgradeIndexMergePolicy 
-Dtests.method=testFindForcedDeletesMerges -Dtests.seed=4AD4A3D0C1089705 
-Dtests.slow=true -Dtests.locale=mt -Dtests.timezone=Asia/Sakhalin 
-Dtests.asserts=true -Dtests.file.encoding=UTF-8
  [junit4] FAILURE 0.03s J0 | 
TestUpgradeIndexMergePolicy.testFindForcedDeletesMerges <<<
  [junit4]    > Throwable #1: java.lang.AssertionError: expected:<0> but was:<1>
  [junit4]    >         at 
__randomizedtesting.SeedInfo.seed([4AD4A3D0C1089705:97983D3D6996F440]:0)
  [junit4]    >         at 
org.apache.lucene.index.BaseMergePolicyTestCase.testFindForcedDeletesMerges(BaseMergePolicyTestCase.java:119)
  [junit4]    >         at java.lang.Thread.run(Thread.java:748)
  [junit4]   2> NOTE: test params are: codec=Asserting(Lucene70): {}, 
docValues:{}, maxPointsInLeafNode=1225, maxMBSortInHeap=7.468841163539708, 
sim=Asserting(org.apache.lucene.search.similarities.AssertingSimilarity@1da73756),
 locale=mt, timezone=Asia/Sakhalin
  [junit4]   2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation 
1.8.0_151 (64-bit)/cpus=16,threads=1,free=150534024,total=331350016
{noformat}

> Detach IndexWriter from MergePolicy
> -----------------------------------
>
>                 Key: LUCENE-8330
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8330
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: 7.4, master (8.0)
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>            Priority: Major
>             Fix For: 7.4, master (8.0)
>
>         Attachments: LUCENE-8330.patch, LUCENE-8330.patch, LUCENE-8330.patch, 
> LUCENE-8330.patch
>
>
>  This change introduces a new MergePolicy.MergeContext interface
>     that is easy to mock and cuts over all instances of IW to MergeContext.
>     Since IW now implements MergeContext the cut over is straight forward.
>     This reduces the exposed API available in MP dramatically and allows
>     efficient testing without relying on IW to improve the coverage and
>     testability of our MP implementations.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to