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

Adjust handshakeTimeout value in test HandshakeTimeout.java after 8189338

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • core-libs
    • b09
    • generic
    • os_x

      After 8189338 we noticed some errors on one of our test macOS machines (macOS 12.4)
      in java/rmi/transport/handshakeTimeout/HandshakeTimeout.java :

      remote call failed with exception:
      java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
      java.net.SocketTimeoutException: Read timed out
      at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:308)
      at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:204)
      at java.rmi/sun.rmi.server.UnicastRef.newCall(UnicastRef.java:345)
      at java.rmi/sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:116)
      at HandshakeTimeout$Connector.run(HandshakeTimeout.java:133)
      at java.base/java.lang.Thread.run(Thread.java:1623)
      Caused by: java.net.SocketTimeoutException: Read timed out
      at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:273)
      at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:299)
      at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:341)
      at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:791)
      at java.base/java.net.Socket$SocketInputStream.read(Socket.java:1099)
      at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:258)
      at java.base/java.io.BufferedInputStream.implRead(BufferedInputStream.java:292)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:279)
      at java.base/java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288)
      at java.base/java.io.DataInputStream.readByte(DataInputStream.java:268)
      at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:247)
      ... 5 more

      TEST PASSED: java.rmi.ConnectException or ConnectIOException thrown
      STATUS:Passed.
      --------------------------------
      java.lang.RuntimeException: TEST FAILED: remote call did not time out
      at HandshakeTimeout.main(HandshakeTimeout.java:94)
      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:125)
      at java.base/java.lang.Thread.run(Thread.java:1623)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: TEST FAILED: remote call did not time out
      JavaTest Message: shutting down test

            djelinski Daniel Jelinski
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: