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

java/util/concurrent/ExecutorService/CloseTest.java fails with java.lang.IllegalStateException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 21.0.4
    • core-libs

      java/util/concurrent/ExecutorService/CloseTest.java java.lang.IllegalStateException in second invocation of TestClose. testShutdownBeforeClose

      ----------messages:(7/212)----------
      command: testng CloseTest
      reason: User specified action: run testng CloseTest
      started: Fri Apr 12 07:34:55 GMT 2024
      Mode: agentvm
      Agent id: 8
      finished: Fri Apr 12 07:35:00 GMT 2024
      elapsed time (seconds): 5.851
      ----------configuration:(14/2030)----------

      . . .

      test CloseTest.testInterruptDuringClose(java.util.concurrent.ThreadPerTaskExecutor@130cbd9e): success
      test CloseTest.testShutdownBeforeClose(DelegatingExecutorService@10787e8d): success
      test CloseTest.testShutdownBeforeClose(java.util.concurrent.ForkJoinPool@43d6f48a): failure
      java.lang.IllegalStateException
      at java.base/java.util.concurrent.ForkJoinTask.resultNow(ForkJoinTask.java:898)
      at CloseTest.testShutdownBeforeClose(CloseTest.java:112)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      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:1596)
      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)

            vklang Viktor Klang
            msheppar Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: