You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2014/12/06 05:25:12 UTC

[jira] [Updated] (LUCENE-6098) Indexwriter changecount assertion fail with g1gc

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

Robert Muir updated LUCENE-6098:
--------------------------------
    Attachment: LUCENE-6098.patch

I would like to add some defense and change the assert to a real check, like this patch.

> Indexwriter changecount assertion fail with g1gc
> ------------------------------------------------
>
>                 Key: LUCENE-6098
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6098
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-6098.patch
>
>
> This failed on 1.8.0u25 G1GC and I was able to reproduce at least once, but not without G1.
> {noformat}
> svn co -r 1643097 https://svn.eu.apache.org/repos/asf/lucene/dev/trunk
> cd trunk/lucene/core
> ant beast  -Dtestcase=TestStressDeletes -Dtests.method=test -Dtests.seed=C8F513C39231BFA2 -Dtests.slow=true -Dtests.locale=sk -Dtests.timezone=Singapore -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1 -Dbeast.iters=1000 -Dargs="-XX:+UseG1GC" -Dtests.dups=8
> {noformat}
> I am not sure this is possible to debug, but the exception is scary:
> {noformat}
>    [junit4] Suite: org.apache.lucene.index.TestStressDeletes
>    [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestStressDeletes -Dtests.method=test -Dtests.seed=C8F513C39231BFA2 -Dtests.slow=true -Dtests.locale=sk -Dtests.timezone=Singapore -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1
>    [junit4] ERROR   0.62s J5 | TestStressDeletes.test <<<
>    [junit4]    > Throwable #1: com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=68, name=Thread-30, state=RUNNABLE, group=TGRP-TestStressDeletes]
>    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([C8F513C39231BFA2:40A12C193CCDD25A]:0)
>    [junit4]    > Caused by: java.lang.AssertionError: lastCommitChangeCount=130 changeCount=128
>    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([C8F513C39231BFA2]:0)
>    [junit4]    > 	at org.apache.lucene.index.IndexWriter.startCommit(IndexWriter.java:4256)
>    [junit4]    > 	at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:2778)
>    [junit4]    > 	at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:2881)
>    [junit4]    > 	at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:2848)
>    [junit4]    > 	at org.apache.lucene.index.TestStressDeletes$1.run(TestStressDeletes.java:75)
>    [junit4]   2> NOTE: test params are: codec=Asserting(Lucene50): {id=PostingsFormat(name=Direct)}, docValues:{}, sim=RandomSimilarityProvider(queryNorm=false,coord=no): {id=DFR I(ne)B1}, locale=sk, timezone=Singapore
>    [junit4]   2> NOTE: Linux 3.13.0-35-generic amd64/Oracle Corporation 1.8.0_25 (64-bit)/cpus=8,threads=1,free=428019792,total=499646464
>    [junit4]   2> NOTE: All tests run in this JVM: [TestOmitNorms, Test2BPositions, Nested2, Nested3, Nested1, Test2BPagedBytes, TestTermsEnum2, TestDoc, TestTwoPhaseCommitTool, TestTimSorter, TestDocTermOrdsRangeFilter, TestWorstCaseTestBehavior, TestBasics, TestToken, TestStressDeletes]
>    [junit4] Completed on J5 in 0.70s, 1 test, 1 error <<< FAILURES!
> {noformat}
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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