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

Nhat Nguyen commented on LUCENE-8414:
-------------------------------------

The problem is that SegmentInfos is accessed/updated under IW lock. However, 
testSoftUpdateDocuments may see a partial update of merge changes of 
SegmentInfos. /cc [~simonw]

> CI fails TestIndexWriter#testSoftUpdateDocuments
> ------------------------------------------------
>
>                 Key: LUCENE-8414
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8414
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: master (8.0), 7.5
>            Reporter: Nhat Nguyen
>            Priority: Minor
>         Attachments: LUCENE-8414-unlucky-schedule.patch, LUCENE-8414.patch
>
>
> Elastic CI found the following issue.
> {noformat}
> [junit4] Suite: org.apache.lucene.index.TestIndexWriter
> [junit4] 2> NOTE: reproduce with: ant test -Dtestcase=TestIndexWriter 
> -Dtests.method=testSoftUpdateDocuments -Dtests.seed=AA5B403FFC4459A5 
> -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=fr-BE 
> -Dtests.timezone=Antarctica/Mawson -Dtests.asserts=true 
> -Dtests.file.encoding=ISO-8859-1
> [junit4] FAILURE 0.08s J1 | TestIndexWriter.testSoftUpdateDocuments <<<
> [junit4] > Throwable #1: java.lang.AssertionError: expected:<0> but was:<2>
> [junit4] > at 
> __randomizedtesting.SeedInfo.seed([AA5B403FFC4459A5:6F9256CD24240312]:0)
> [junit4] > at 
> org.apache.lucene.index.TestIndexWriter.testSoftUpdateDocuments(TestIndexWriter.java:3168)
> [junit4] > at java.lang.Thread.run(Thread.java:748)
> [junit4] 2> NOTE: leaving temporary files on disk at: 
> /var/lib/jenkins/workspace/apache+lucene-solr+branch_7x/lucene/build/core/test/J1/temp/lucene.index.TestIndexWriter_AA5B403FFC4459A5-001{noformat}
> I can reproduce this by mucking an unlucky schedule (see 
> unlucky-schedule.patch).



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

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

Reply via email to