You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Nhat Nguyen (Jira)" <ji...@apache.org> on 2021/10/20 02:46:00 UTC

[jira] [Comment Edited] (LUCENE-10190) Assertion error in TestIndexWriter.testMaxCompletedSequenceNumber

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

Nhat Nguyen edited comment on LUCENE-10190 at 10/20/21, 2:45 AM:
-----------------------------------------------------------------

I can reproduce the issue by sleeping for a few ms before we increase the numDocsInRam ([ https://github.com/apache/lucene/commit/bbd24e865451d73fc228bd6a0b712508bd111b05 ).|https://github.com/apache/lucene/commit/bbd24e865451d73fc228bd6a0b712508bd111b05).] I will be working on the fix.


was (Author: dnhatn):
I can reproduce the issue by sleeping for a few ms before we increase the numDocsInRam ([https://github.com/apache/lucene/commit/bbd24e865451d73fc228bd6a0b712508bd111b05).] I will be working on the fix.

> Assertion error in TestIndexWriter.testMaxCompletedSequenceNumber
> -----------------------------------------------------------------
>
>                 Key: LUCENE-10190
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10190
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Dawid Weiss
>            Assignee: Nhat Nguyen
>            Priority: Minor
>
> CI failure in PR at:
> https://github.com/apache/lucene/pull/396/checks?check_run_id=3936559246
> Does not reproduce. Stack below.
> {code}
> org.apache.lucene.index.TestIndexWriter > testMaxCompletedSequenceNumber FAILED
>     com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=1840, name=Thread-1481, state=RUNNABLE, group=TGRP-TestIndexWriter]
>         at __randomizedtesting.SeedInfo.seed([5B8EFE8DBEFB881C:671A014F243A0EDE]:0)
>         Caused by:
>         java.lang.AssertionError: expected:<1> but was:<0>
>             at __randomizedtesting.SeedInfo.seed([5B8EFE8DBEFB881C]:0)
>             at org.junit.Assert.fail(Assert.java:89)
>             at org.junit.Assert.failNotEquals(Assert.java:835)
>             at org.junit.Assert.assertEquals(Assert.java:647)
>             at org.junit.Assert.assertEquals(Assert.java:633)
>             at org.apache.lucene.index.TestIndexWriter.lambda$testMaxCompletedSequenceNumber$53(TestIndexWriter.java:4305)
>             at java.base/java.lang.Thread.run(Thread.java:829)
> org.apache.lucene.index.TestIndexWriter > test suite's output saved to /home/runner/work/lucene/lucene/lucene/core/build/test-results/test/outputs/OUTPUT-org.apache.lucene.index.TestIndexWriter.txt, copied below:
>   2> أكتوبر ١٩, ٢٠٢١ ١٠:٢٧:٢٧ ص com.carrotsearch.randomizedtesting.RandomizedRunner$QueueUncaughtExceptionsHandler uncaughtException
>   2> WARNING: Uncaught exception in thread: Thread[Thread-1481,5,TGRP-TestIndexWriter]
>   2> java.lang.AssertionError: expected:<1> but was:<0>
>   2> 	at __randomizedtesting.SeedInfo.seed([5B8EFE8DBEFB881C]:0)
>   2> 	at org.junit.Assert.fail(Assert.java:89)
>   2> 	at org.junit.Assert.failNotEquals(Assert.java:835)
>   2> 	at org.junit.Assert.assertEquals(Assert.java:647)
>   2> 	at org.junit.Assert.assertEquals(Assert.java:633)
>   2> 	at org.apache.lucene.index.TestIndexWriter.lambda$testMaxCompletedSequenceNumber$53(TestIndexWriter.java:4305)
>   2> 	at java.base/java.lang.Thread.run(Thread.java:829)
>   2> 
>    >     com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=1840, name=Thread-1481, state=RUNNABLE, group=TGRP-TestIndexWriter]
>    >         at __randomizedtesting.SeedInfo.seed([5B8EFE8DBEFB881C:671A014F243A0EDE]:0)
>    > 
>    >         Caused by:
>    >         java.lang.AssertionError: expected:<1> but was:<0>
>    >             at __randomizedtesting.SeedInfo.seed([5B8EFE8DBEFB881C]:0)
>    >             at org.junit.Assert.fail(Assert.java:89)
>    >             at org.junit.Assert.failNotEquals(Assert.java:835)
>    >             at org.junit.Assert.assertEquals(Assert.java:647)
>    >             at org.junit.Assert.assertEquals(Assert.java:633)
>    >             at org.apache.lucene.index.TestIndexWriter.lambda$testMaxCompletedSequenceNumber$53(TestIndexWriter.java:4305)
>    >             at java.base/java.lang.Thread.run(Thread.java:829)
>   2> NOTE: reproduce with: gradlew test --tests TestIndexWriter.testMaxCompletedSequenceNumber -Dtests.seed=5B8EFE8DBEFB881C -Dtests.badapples=true -Dtests.locale=ar-KW -Dtests.timezone=Africa/Lusaka -Dtests.asserts=true -Dtests.file.encoding=UTF-8
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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