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

java/util/concurrent/CountDownLatch/Basic.java fails

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 13, 14
    • Fix Version/s: 14
    • Component/s: core-libs
    • Labels:

      Description

      The following test fails in the JDK/JDK CI:

      java/util/concurrent/CountDownLatch/Basic.java

      Here's a snippet of log file:

      ----------System.out:(80/4043)----------
      with millis: java.util.concurrent.CountDownLatch@14e0faec[Count = 3]
      with millis: java.util.concurrent.CountDownLatch@14e0faec[Count = 3]
      without millis: java.util.concurrent.CountDownLatch@14e0faec[Count = 3]
      without millis: java.util.concurrent.CountDownLatch@14e0faec[Count = 3]
      Main Thread: java.util.concurrent.CountDownLatch@14e0faec[Count = 3]
      without millis: java.util.concurrent.CountDownLatch@14e0faec[Count = 2]
      with millis: java.util.concurrent.CountDownLatch@14e0faec[Count = 2]
      with millis: java.util.concurrent.CountDownLatch@14e0faec[Count = 2]
      without millis: java.util.concurrent.CountDownLatch@14e0faec[Count = 2]
      Main Thread: java.util.concurrent.CountDownLatch@14e0faec[Count = 2]
      without millis: java.util.concurrent.CountDownLatch@14e0faec[Count = 1]
      without millis: java.util.concurrent.CountDownLatch@14e0faec[Count = 1]
      with millis: java.util.concurrent.CountDownLatch@14e0faec[Count = 1]
      with millis: java.util.concurrent.CountDownLatch@14e0faec[Count = 1]
      Main Thread: java.util.concurrent.CountDownLatch@14e0faec[Count = 1]
      with millis - ComingOut
      with millis - ComingOut
      with millis - ComingOut
      without millis - ComingOut
      without millis - ComingOut
      with millis - ComingOut
      with millis - ComingOut
      without millis - ComingOut
      without millis - ComingOut
      without millis - ComingOut
      without millis - ComingOut
      with millis - ComingOut
      without millis: java.util.concurrent.CountDownLatch@d970efd[Count = 3]
      without millis: java.util.concurrent.CountDownLatch@d970efd[Count = 3]
      with millis: java.util.concurrent.CountDownLatch@d970efd[Count = 3]
      with millis: java.util.concurrent.CountDownLatch@d970efd[Count = 3]
      Main Thread: java.util.concurrent.CountDownLatch@d970efd[Count = 3]
      without millis: java.util.concurrent.CountDownLatch@d970efd[Count = 2]
      without millis: java.util.concurrent.CountDownLatch@d970efd[Count = 2]
      with millis: java.util.concurrent.CountDownLatch@d970efd[Count = 2]
      with millis: java.util.concurrent.CountDownLatch@d970efd[Count = 2]
      Main Thread: java.util.concurrent.CountDownLatch@d970efd[Count = 2]
      without millis: java.util.concurrent.CountDownLatch@d970efd[Count = 1]
      without millis: java.util.concurrent.CountDownLatch@d970efd[Count = 1]
      with millis: java.util.concurrent.CountDownLatch@d970efd[Count = 1]
      with millis: java.util.concurrent.CountDownLatch@d970efd[Count = 1]
      Main Thread: java.util.concurrent.CountDownLatch@d970efd[Count = 1]
      without millis - ComingOut
      without millis - ComingOut
      with millis - ComingOut
      without millis - ComingOut
      without millis - ComingOut
      with millis - ComingOut
      without millis - ComingOut
      without millis - ComingOut
      with millis - ComingOut
      with millis - ComingOut
      Mismatch: null, java.lang.InterruptedException
      with millis: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 3]
      with millis - ComingOut
      without millis: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 3]
      with millis: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 3]
      with millis: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 3]
      Main Thread: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 3]
      with millis: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 2]
      without millis: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 2]
      with millis: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 2]
      with millis: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 2]
      Main Thread: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 2]
      with millis: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 1]
      without millis: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 1]
      with millis: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 1]
      with millis: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 1]
      Main Thread: java.util.concurrent.CountDownLatch@7cb26d4d[Count = 1]
      without millis - ComingOut
      with millis - ComingOut
      with millis - ComingOut
      with millis - ComingOut
      without millis - ComingOut
      with millis - ComingOut
      with millis - ComingOut
      with millis - ComingOut
      without millis - ComingOut
      with millis - ComingOut
      with millis - ComingOut
      ----------System.err:(12/679)----------
      java.lang.AssertionError: 1 failures
      at Basic.main(Basic.java:188)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:835)

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

      result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: 1 failures


      test result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: 1 failures

      The failure line in the test appears to be:

      Mismatch: null, java.lang.InterruptedException

      This particular test run is using -Xcomp.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                martin Martin Buchholz
                Reporter:
                dcubed Daniel Daugherty
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: