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

java/nio/channels/SocketChannel/AdaptorStreams.java fails with "SocketTimeoutException: Read timed out"

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b24
    • CPU:
      x86_64
    • OS:
      linux
    • Verification:
      Verified

      Description

      The following test failed in the JDK18 CI:

      java/nio/channels/SocketChannel/AdaptorStreams.java

      Here's a snippet from the log file:

      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testConcurrentReadWrite1(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testConcurrentReadWrite2(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testConcurrentReadWrite3(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testConcurrentTimedReadWrite1(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testConcurrentTimedReadWrite2(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testConcurrentTimedReadWrite3(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testRead1(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testRead2(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testRead3(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testRead4(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testRead5(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testRead6(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testRead7(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testRead8(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testTimedRead1(): success
      [2021-11-05T18:26:46,249Z] test AdaptorStreams.testTimedRead2(): failure
      [2021-11-05T18:26:46,249Z] java.net.SocketTimeoutException: Read timed out
      [2021-11-05T18:26:46,249Z] at java.base/sun.nio.ch.SocketChannelImpl.timedRead(SocketChannelImpl.java:1231)
      [2021-11-05T18:26:46,249Z] at java.base/sun.nio.ch.SocketChannelImpl.blockingRead(SocketChannelImpl.java:1278)
      [2021-11-05T18:26:46,249Z] at java.base/sun.nio.ch.SocketAdaptor$1.read(SocketAdaptor.java:192)
      [2021-11-05T18:26:46,249Z] at java.base/sun.nio.ch.SocketAdaptor$1.read(SocketAdaptor.java:184)
      [2021-11-05T18:26:46,249Z] at AdaptorStreams.lambda$testTimedRead2$13(AdaptorStreams.java:175)
      [2021-11-05T18:26:46,249Z] at AdaptorStreams.withConnection(AdaptorStreams.java:472)
      [2021-11-05T18:26:46,249Z] at AdaptorStreams.testTimedRead2(AdaptorStreams.java:171)
      [2021-11-05T18:26:46,249Z] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      [2021-11-05T18:26:46,249Z] at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      [2021-11-05T18:26:46,249Z] at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
      [2021-11-05T18:26:46,249Z] at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
      [2021-11-05T18:26:46,249Z] at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
      [2021-11-05T18:26:46,249Z] at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
      [2021-11-05T18:26:46,249Z] at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
      [2021-11-05T18:26:46,249Z] at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
      [2021-11-05T18:26:46,249Z] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
      [2021-11-05T18:26:46,249Z] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
      [2021-11-05T18:26:46,249Z] at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      [2021-11-05T18:26:46,249Z] at org.testng.TestRunner.privateRun(TestRunner.java:764)
      [2021-11-05T18:26:46,249Z] at org.testng.TestRunner.run(TestRunner.java:585)
      [2021-11-05T18:26:46,249Z] at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
      [2021-11-05T18:26:46,249Z] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
      [2021-11-05T18:26:46,250Z] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
      [2021-11-05T18:26:46,250Z] at org.testng.SuiteRunner.run(SuiteRunner.java:286)
      [2021-11-05T18:26:46,250Z] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
      [2021-11-05T18:26:46,250Z] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
      [2021-11-05T18:26:46,250Z] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
      [2021-11-05T18:26:46,250Z] at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
      [2021-11-05T18:26:46,250Z] at org.testng.TestNG.runSuites(TestNG.java:1069)
      [2021-11-05T18:26:46,250Z] at org.testng.TestNG.run(TestNG.java:1037)
      [2021-11-05T18:26:46,250Z] at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      [2021-11-05T18:26:46,250Z] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      [2021-11-05T18:26:46,250Z] at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      [2021-11-05T18:26:46,250Z] at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      [2021-11-05T18:26:46,250Z] at java.base/java.lang.Thread.run(Thread.java:833)
      [2021-11-05T18:26:46,250Z] test AdaptorStreams.testTimedRead3(): success
      [2021-11-05T18:26:46,250Z] test AdaptorStreams.testTimedRead4(): success
      [2021-11-05T18:26:46,250Z] test AdaptorStreams.testTimedRead5(): success
      [2021-11-05T18:26:46,250Z] test AdaptorStreams.testTimedRead6(): success
      [2021-11-05T18:26:46,250Z] test AdaptorStreams.testWrite1(): success
      [2021-11-05T18:26:46,250Z] test AdaptorStreams.testWrite2(): success
      [2021-11-05T18:26:46,250Z] test AdaptorStreams.testWrite3(): success
      [2021-11-05T18:26:46,250Z] test AdaptorStreams.testWrite4(): success
      [2021-11-05T18:26:46,250Z]
      [2021-11-05T18:26:46,250Z] ===============================================
      [2021-11-05T18:26:46,250Z] java/nio/channels/SocketChannel/AdaptorStreams.java
      [2021-11-05T18:26:46,250Z] Total tests run: 24, Passes: 23, Failures: 1, Skips: 0
      [2021-11-05T18:26:46,250Z] ===============================================
      [2021-11-05T18:26:46,250Z]
      [2021-11-05T18:26:46,250Z] STDERR:
      [2021-11-05T18:26:46,250Z] java.lang.Exception: failures: 1
      [2021-11-05T18:26:46,250Z] at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
      [2021-11-05T18:26:46,250Z] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      [2021-11-05T18:26:46,250Z] at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      [2021-11-05T18:26:46,250Z] at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      [2021-11-05T18:26:46,250Z] at java.base/java.lang.Thread.run(Thread.java:833)
      [2021-11-05T18:26:46,250Z]
      [2021-11-05T18:26:46,250Z] JavaTest Message: Test threw exception: java.lang.Exception
      [2021-11-05T18:26:46,250Z] JavaTest Message: shutting down test
      [2021-11-05T18:26:46,250Z]
      [2021-11-05T18:26:46,250Z]
      [2021-11-05T18:26:46,250Z] TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 1
      [2021-11-05T18:26:46,250Z] --------------------------------------------------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alanb Alan Bateman
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: