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

java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted"

XMLWordPrintable

    • b22
    • aarch64
    • os_x
    • Verified

      The following test failed in the JDK19 CI:

      java/util/concurrent/ExecutorService/CloseTest.java

      Here's a snippet from the log file:

      #section:testng
      ----------messages:(4/187)----------
      command: testng --enable-preview CloseTest
      reason: User specified action: run testng/othervm --enable-preview CloseTest
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 15.006
      ----------configuration:(0/0)----------
      ----------System.out:(96/7646)----------
      test CloseTest.testCloseWithNoTasks(DelegatingExecutorService@7b7f3bb0): success
      test CloseTest.testCloseWithNoTasks(java.util.concurrent.ForkJoinPool@1e49cee): success
      test CloseTest.testCloseWithNoTasks(java.util.concurrent.ThreadPoolExecutor@ab34110): success
      test CloseTest.testCloseWithNoTasks(java.util.concurrent.ThreadPoolExecutor@3f6bb975): success
      test CloseTest.testCloseWithNoTasks(java.util.concurrent.ThreadPerTaskExecutor@2374acc): success
      test CloseTest.testCloseWithNoTasks(java.util.concurrent.ThreadPerTaskExecutor@7d01fd): success
      test CloseTest.testCloseWithRunningTasks(DelegatingExecutorService@43b6459b): success
      test CloseTest.testCloseWithRunningTasks(java.util.concurrent.ForkJoinPool@4ca68453): success
      test CloseTest.testCloseWithRunningTasks(java.util.concurrent.ThreadPoolExecutor@7e3325a9): success
      test CloseTest.testCloseWithRunningTasks(java.util.concurrent.ThreadPoolExecutor@4229df43): success
      test CloseTest.testCloseWithRunningTasks(java.util.concurrent.ThreadPerTaskExecutor@30bb95a0): success
      test CloseTest.testCloseWithRunningTasks(java.util.concurrent.ThreadPerTaskExecutor@1c79a0bb): success
      test CloseTest.testInterruptBeforeClose(DelegatingExecutorService@7a49883e): success
      test CloseTest.testInterruptBeforeClose(java.util.concurrent.ForkJoinPool@5b5901f5): success
      test CloseTest.testInterruptBeforeClose(java.util.concurrent.ThreadPoolExecutor@20683f1f): success
      test CloseTest.testInterruptBeforeClose(java.util.concurrent.ThreadPoolExecutor@2466d7a0): success
      test CloseTest.testInterruptBeforeClose(java.util.concurrent.ThreadPerTaskExecutor@1251a689): success
      test CloseTest.testInterruptBeforeClose(java.util.concurrent.ThreadPerTaskExecutor@7a9505c1): success
      test CloseTest.testInterruptDuringClose(DelegatingExecutorService@3d2f87c8): success
      test CloseTest.testInterruptDuringClose(java.util.concurrent.ForkJoinPool@1f031981): success
      test CloseTest.testInterruptDuringClose(java.util.concurrent.ThreadPoolExecutor@586ab76b): success
      test CloseTest.testInterruptDuringClose(java.util.concurrent.ThreadPoolExecutor@7bf7f12f): success
      test CloseTest.testInterruptDuringClose(java.util.concurrent.ThreadPerTaskExecutor@26a4d6db): success
      test CloseTest.testInterruptDuringClose(java.util.concurrent.ThreadPerTaskExecutor@3546b953): success
      test CloseTest.testShutdownBeforeClose(DelegatingExecutorService@29ba3d8b): success
      test CloseTest.testShutdownBeforeClose(java.util.concurrent.ForkJoinPool@78e55947): failure
      java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.InterruptedException: sleep interrupted
      at java.base/java.util.concurrent.ForkJoinTask.reportExecutionException(ForkJoinTask.java:581)
      at java.base/java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:993)
      at CloseTest.testShutdownBeforeClose(CloseTest.java:113)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      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 com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:1596)
      Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.InterruptedException: sleep interrupted
      at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:67)
      at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
      at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:484)
      at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:540)
      at java.base/java.util.concurrent.ForkJoinTask.reportExecutionException(ForkJoinTask.java:580)
      ... 31 more
      Caused by: java.lang.RuntimeException: java.lang.InterruptedException: sleep interrupted
      at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1461)
      at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
      at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1311)
      at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1840)
      at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1806)
      at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
      Caused by: java.lang.InterruptedException: sleep interrupted
      at java.base/java.lang.Thread.sleep0(Native Method)
      at java.base/java.lang.Thread.sleep(Thread.java:465)
      at java.base/java.lang.Thread.sleep(Thread.java:547)
      at CloseTest.lambda$testShutdownBeforeClose$1(CloseTest.java:102)
      at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1456)
      ... 5 more
      test CloseTest.testShutdownBeforeClose(java.util.concurrent.ThreadPoolExecutor@5a48cbe6): success
      test CloseTest.testShutdownBeforeClose(java.util.concurrent.ThreadPoolExecutor@351f851c): success
      test CloseTest.testShutdownBeforeClose(java.util.concurrent.ThreadPerTaskExecutor@33f236a5): success
      test CloseTest.testShutdownBeforeClose(java.util.concurrent.ThreadPerTaskExecutor@3805b133): success
      test CloseTest.testTerminateBeforeClose(DelegatingExecutorService@1453fbfb): success
      test CloseTest.testTerminateBeforeClose(java.util.concurrent.ForkJoinPool@6d182c98): success
      test CloseTest.testTerminateBeforeClose(java.util.concurrent.ThreadPoolExecutor@5f0d59b): success
      test CloseTest.testTerminateBeforeClose(java.util.concurrent.ThreadPoolExecutor@770623e3): success
      test CloseTest.testTerminateBeforeClose(java.util.concurrent.ThreadPerTaskExecutor@122fcfb5): success
      test CloseTest.testTerminateBeforeClose(java.util.concurrent.ThreadPerTaskExecutor@24b9a354): success

      ===============================================
      java/util/concurrent/ExecutorService/CloseTest.java
      Total tests run: 36, Passes: 35, Failures: 1, Skips: 0
      ===============================================

      ----------System.err:(12/672)----------
      java.lang.Exception: failures: 1
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:1596)

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

      STATUS:Failed.`main' threw exception: java.lang.Exception: failures: 1
      ----------rerun:(35/6831)*----------

            dl Doug Lea
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: