You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2014/03/05 02:02:01 UTC

[jira] [Commented] (SOLR-5815) Non-reproducible failures of TestNonNRTOpen.testReaderIsNotNRT

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

Hoss Man commented on SOLR-5815:
--------------------------------

The failing assert comes from checking the "maxDoc" of an index after adding a doc and doing a core reload.

since the failure only happens on the policeman jenkins instance, my best guess is it's a timing problem resulting in a race condition between threads -- but based on my understanding of the reload code, and the thread IDs referenced in the existing log messages, i don't see how that's possible.

In any case: i'm going to commit some additional logging to the test to try and track down exactly what core/searcher the assert is failing against just to prove to myself that's not the problem

> Non-reproducible failures of TestNonNRTOpen.testReaderIsNotNRT
> --------------------------------------------------------------
>
>                 Key: SOLR-5815
>                 URL: https://issues.apache.org/jira/browse/SOLR-5815
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>
> SOLR-4909 added TestNonNRTOpen on Sep 10, 2013 - since then the policeman jenkins server has reported {{TestNonNRTOpen.testReaderIsNotNRT}} failing 33 times by my count -- but i've never been able to reproduce, nor have I seen any similar failures from apache jenkins.
> The failures are all virtually identical, and seem to happen just as likely on 4x/trunk, mac/linux/windows, 1.6/1.7/1.8
> Recent Example...
> {noformat}
>    [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestNonNRTOpen -Dtests.method=testReaderIsNotNRT -Dtests.seed=8BF5F44429C5ABCA -Dtests.multiplier=3 -Dtests.slow=true -Dtests.locale=nl -Dtests.timezone=America/Whitehorse -Dtests.file.encoding=ISO-8859-1
>    [junit4] FAILURE 0.23s J0 | TestNonNRTOpen.testReaderIsNotNRT <<<
>    [junit4]    > Throwable #1: java.lang.AssertionError: expected:<3> but was:<2>
>    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([8BF5F44429C5ABCA:3E7395C39604193E]:0)
>    [junit4]    > 	at org.apache.solr.core.TestNonNRTOpen.assertNotNRT(TestNonNRTOpen.java:133)
>    [junit4]    > 	at org.apache.solr.core.TestNonNRTOpen.testReaderIsNotNRT(TestNonNRTOpen.java:94)
>    [junit4]    > 	at java.lang.Thread.run(Thread.java:744)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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