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

java/util/concurrent/forkjoin/AsyncShutdownNow.java failed with java.util.concurrent.CancellationException

    XMLWordPrintable

Details

    Description

      The following test failed in the JDK18 CI:

      java/util/concurrent/forkjoin/AsyncShutdownNow.java

      Here's a snippet from the log file:

      ----------System.out:(57/4650)----------
      config AsyncShutdownNow.setup(): success
      testFutureGet: java.util.concurrent.ForkJoinPool@7541c27e[Running, parallelism = 12, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
      test AsyncShutdownNow.testFutureGet(java.util.concurrent.ForkJoinPool@7541c27e): failure
      java.util.concurrent.CancellationException
      at java.base/java.util.concurrent.ForkJoinTask.uncheckedThrow(ForkJoinTask.java:626)
      at java.base/java.util.concurrent.ForkJoinTask.reportExecutionException(ForkJoinTask.java:606)
      at java.base/java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:981)
      at AsyncShutdownNow.testFutureGet(AsyncShutdownNow.java:104)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
      at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
      at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
      at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
      at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
      at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      at org.testng.TestRunner.privateRun(TestRunner.java:764)
      at org.testng.TestRunner.run(TestRunner.java:585)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
      at org.testng.SuiteRunner.run(SuiteRunner.java:286)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
      at org.testng.TestNG.runSuites(TestNG.java:1069)
      at org.testng.TestNG.run(TestNG.java:1037)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:833)
      testFutureGet: java.util.concurrent.ForkJoinPool@49ac73fc[Running, parallelism = 1, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
      test AsyncShutdownNow.testFutureGet(java.util.concurrent.ForkJoinPool@49ac73fc): success
      testInvokeAll: java.util.concurrent.ForkJoinPool@5fe42293[Running, parallelism = 12, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
      test AsyncShutdownNow.testInvokeAll(java.util.concurrent.ForkJoinPool@5fe42293): success
      testInvokeAll: java.util.concurrent.ForkJoinPool@3eae040c[Running, parallelism = 1, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
      test AsyncShutdownNow.testInvokeAll(java.util.concurrent.ForkJoinPool@3eae040c): success
      testInvokeAny: java.util.concurrent.ForkJoinPool@32ca09b0[Running, parallelism = 12, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
      test AsyncShutdownNow.testInvokeAny(java.util.concurrent.ForkJoinPool@32ca09b0): success
      testInvokeAny: java.util.concurrent.ForkJoinPool@17a68c40[Running, parallelism = 1, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
      test AsyncShutdownNow.testInvokeAny(java.util.concurrent.ForkJoinPool@17a68c40): success
      testTimedFutureGet: java.util.concurrent.ForkJoinPool@5ef65e1e[Running, parallelism = 12, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
      test AsyncShutdownNow.testTimedFutureGet(java.util.concurrent.ForkJoinPool@5ef65e1e): success
      testTimedFutureGet: java.util.concurrent.ForkJoinPool@145d3a2e[Running, parallelism = 1, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
      test AsyncShutdownNow.testTimedFutureGet(java.util.concurrent.ForkJoinPool@145d3a2e): success
      config AsyncShutdownNow.teardown(): success

      ===============================================
      java/util/concurrent/forkjoin/AsyncShutdownNow.java
      Total tests run: 8, Passes: 7, Failures: 1, Skips: 0
      ===============================================

      ----------System.err:(10/537)----------
      java.lang.Exception: failures: 1
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:833)

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

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

      Attachments

        Issue Links

          Activity

            People

              psandoz Paul Sandoz
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: