You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2014/01/09 15:56:51 UTC

[jira] [Created] (LUCENE-5390) Loosen assert in IW on pending event after close

Simon Willnauer created LUCENE-5390:
---------------------------------------

             Summary: Loosen assert in IW on pending event after close
                 Key: LUCENE-5390
                 URL: https://issues.apache.org/jira/browse/LUCENE-5390
             Project: Lucene - Core
          Issue Type: Task
    Affects Versions: 4.6, 5.0, 4.7, 4.6.1
            Reporter: Simon Willnauer
            Priority: Minor
             Fix For: 5.0, 4.7, 4.6.1


Sometimes the assert in the IW is tripped due to pending merge events. Those events can always happen but they are meaningless since we close / rollback the IW anyway. I suggest we loosen the assert here to not fail if there are only pending merge events.

<noformat>
1 tests failed.
REGRESSION:  org.apache.lucene.index.TestIndexWriterWithThreads.testRollbackAndCommitWithThreads

Error Message:
Captured an uncaught exception in thread: Thread[id=288, name=Thread-222, state=RUNNABLE, group=TGRP-TestIndexWriterWithThreads]

Stack Trace:
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=288, name=Thread-222, state=RUNNABLE, group=TGRP-TestIndexWriterWithThreads]
Caused by: java.lang.RuntimeException: java.lang.AssertionError: [org.apache.lucene.index.DocumentsWriter$MergePendingEvent@67ef293b]
        at __randomizedtesting.SeedInfo.seed([98DFB1602D9F9A2A]:0)
        at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:619)
Caused by: java.lang.AssertionError: [org.apache.lucene.index.DocumentsWriter$MergePendingEvent@67ef293b]
        at org.apache.lucene.index.IndexWriter.rollback(IndexWriter.java:2026)
        at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:575)

</noformat>



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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