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

java/util/concurrent/forkjoin/AsyncShutdownNow.java fails with java.util.concurrent.RejectedExecutionException

    XMLWordPrintable

    Details

      Backports

        Description

        The following test failed in the JDK17 CI:

        java/util/concurrent/forkjoin/AsyncShutdownNow.java

        Here's a snippet from the log file:

        ----------System.out:(60/4792)----------
        [TestNG] Running:
          java/util/concurrent/forkjoin/AsyncShutdownNow.java

        config AsyncShutdownNow.setup(): success
        testFutureGet: java.util.concurrent.ForkJoinPool@799cab32[Running, parallelism = 12, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
        test AsyncShutdownNow.testFutureGet(java.util.concurrent.ForkJoinPool@799cab32): success
        testFutureGet: java.util.concurrent.ForkJoinPool@5f5ea55b[Running, parallelism = 1, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
        test AsyncShutdownNow.testFutureGet(java.util.concurrent.ForkJoinPool@5f5ea55b): success
        testInvokeAll: java.util.concurrent.ForkJoinPool@13b08449[Running, parallelism = 12, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
        test AsyncShutdownNow.testInvokeAll(java.util.concurrent.ForkJoinPool@13b08449): success
        testInvokeAll: java.util.concurrent.ForkJoinPool@51b626a0[Running, parallelism = 1, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
        test AsyncShutdownNow.testInvokeAll(java.util.concurrent.ForkJoinPool@51b626a0): success
        testInvokeAny: java.util.concurrent.ForkJoinPool@7c8b3c8e[Running, parallelism = 12, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
        test AsyncShutdownNow.testInvokeAny(java.util.concurrent.ForkJoinPool@7c8b3c8e): failure
        java.util.concurrent.RejectedExecutionException
        at java.base/java.util.concurrent.ForkJoinPool.externalPush(ForkJoinPool.java:2171)
        at java.base/java.util.concurrent.ForkJoinPool.externalSubmit(ForkJoinPool.java:2188)
        at java.base/java.util.concurrent.ForkJoinPool.invokeAny(ForkJoinPool.java:2852)
        at AsyncShutdownNow.testInvokeAny(AsyncShutdownNow.java:168)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
        at org.testng.TestRunner.privateRun(TestRunner.java:773)
        at org.testng.TestRunner.run(TestRunner.java:623)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
        at org.testng.SuiteRunner.run(SuiteRunner.java:259)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
        at org.testng.TestNG.run(TestNG.java:1018)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
        at java.base/java.lang.Thread.run(Thread.java:831)
        testInvokeAny: java.util.concurrent.ForkJoinPool@1ce556a4[Running, parallelism = 1, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
        test AsyncShutdownNow.testInvokeAny(java.util.concurrent.ForkJoinPool@1ce556a4): success
        testTimedFutureGet: java.util.concurrent.ForkJoinPool@68b144ab[Running, parallelism = 12, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
        test AsyncShutdownNow.testTimedFutureGet(java.util.concurrent.ForkJoinPool@68b144ab): success
        testTimedFutureGet: java.util.concurrent.ForkJoinPool@58a982c9[Running, parallelism = 1, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]
        test AsyncShutdownNow.testTimedFutureGet(java.util.concurrent.ForkJoinPool@58a982c9): success
        config AsyncShutdownNow.teardown(): success

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

        ----------System.err:(12/726)----------
        java.lang.Exception: failures: 1
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
        at java.base/java.lang.Thread.run(Thread.java:831)

        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

                Assignee:
                jboes Julia Boes
                Reporter:
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: