You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Dawid Weiss (JIRA)" <ji...@apache.org> on 2018/03/12 20:38:00 UTC

[jira] [Commented] (LUCENE-8201) TestCodecLoadingDeadlock.testDeadlock failure has no "reproduce with" line

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

Dawid Weiss commented on LUCENE-8201:
-------------------------------------

This "reproduce with" line is printed with a test event listener, it's not really part of randomized testing. This particular test has this in its header:
{code}
/* WARNING: This test does *not* extend LuceneTestCase to prevent static class
 * initialization when spawned as subprocess (and please let default codecs alive)! */

@RunWith(RandomizedRunner.class)
public class TestCodecLoadingDeadlock extends Assert { 
{code}

Note it extends randomized runner, but does not extend the base test class from Lucene (for a reason); that's why you can't see the "repro" line. The seed is printed as part of the stack trace (and this is part of the randomizedtesting framework), so if you use it, the failure should be reproducible.

{code}
ant -Dtests.seed=88B4FC32922379
{code}

> TestCodecLoadingDeadlock.testDeadlock failure has no "reproduce with" line
> --------------------------------------------------------------------------
>
>                 Key: LUCENE-8201
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8201
>             Project: Lucene - Core
>          Issue Type: Test
>            Reporter: Steve Rowe
>            Priority: Major
>
> Is it expected that there are test situations where a "reproduce with" line is not printed?  ({{reproduceJenkinsFailures.py}} assumes that all failures produce such a line.)
> Here's one from [https://builds.apache.org/job/Lucene-Solr-SmokeRelease-7.x/172/]:
> {noformat}
>    [smoker]    [junit4] Suite: org.apache.lucene.codecs.TestCodecLoadingDeadlock
>    [smoker]    [junit4] FAILURE 30.4s J0 | TestCodecLoadingDeadlock.testDeadlock <<<
>    [smoker]    [junit4]    > Throwable #1: java.lang.AssertionError: Process did not exit after 30 secs -> classloader deadlock?
>    [smoker]    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([88B4FC32922379:DE355E834C88EAF]:0)
>    [smoker]    [junit4]    > 	at org.apache.lucene.codecs.TestCodecLoadingDeadlock.testDeadlock(TestCodecLoadingDeadlock.java:75)
>    [smoker]    [junit4] Completed [132/466 (1!)] on J0 in 30.45s, 1 test, 1 failure <<< FAILURES!
> {noformat}



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

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