Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8141031

java/util/concurrent/Phaser/Basic.java starts failing intermittently

XMLWordPrintable

        java/util/concurrent/Phaser/Basic.java

        Observed this test starts failing intermittently on different platforms recently (after JDK-8134853).

        Here's one failure log from windows-amd64:

        ----------System.out:(3/30)----------

        Passed = 573, failed = 4

        ----------System.err:(54/2937)----------
        java.lang.InterruptedException
        at java.util.concurrent.Phaser.awaitAdvanceInterruptibly(Phaser.java:794)
        at Basic.toTheStartingGate(Basic.java:99)
        at Basic.access$000(Basic.java:49)
        at Basic$3.run(Basic.java:166)
        java.lang.InterruptedException
        at java.lang.Object.wait(Native Method)
        at java.lang.Thread.join(Thread.java:1252)
        at java.lang.Thread.join(Thread.java:1326)
        at Basic.realMain(Basic.java:259)
        at Basic.main(Basic.java:406)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:520)
        at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
        at java.lang.Thread.run(Thread.java:747)
        java.lang.InterruptedException
        at java.util.concurrent.Phaser.awaitAdvanceInterruptibly(Phaser.java:794)
        at Basic.toTheStartingGate(Basic.java:99)
        at Basic.realMain(Basic.java:280)
        at Basic.main(Basic.java:406)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:520)
        at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
        at java.lang.Thread.run(Thread.java:747)
        java.lang.Error: java.lang.InterruptedException
        at Basic.toTheStartingGate(Basic.java:107)
        at Basic.realMain(Basic.java:280)
        at Basic.main(Basic.java:406)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:520)
        at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
        at java.lang.Thread.run(Thread.java:747)
        Caused by: java.lang.InterruptedException
        at java.util.concurrent.Phaser.awaitAdvanceInterruptibly(Phaser.java:794)
        at Basic.toTheStartingGate(Basic.java:99)
        ... 8 more
        java.lang.AssertionError: Some tests failed
        at Basic.main(Basic.java:408)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:520)
        at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
        at java.lang.Thread.run(Thread.java:747)

        JavaTest Message: Test threw exception: java.lang.AssertionError
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed

              martin Martin Buchholz
              amlu Amy Lu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: