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

TEST_BUG: java/nio/channels/SocketChannel/AdaptSocket.java

XMLWordPrintable

    • b02
    • generic
    • generic
    • Verified

      JDK/JRE tested: 6u18b02
      OS/architecture: generic
      Reproducible: Always
      Reproducible on machine:
      kendo.russia, adidas.ireland, stt-18.russia, stt-36.russia
      Is it a platform specific regression: N
      Is it a Regression: N
      Test result on FCS: Fail
      Test run log location:
      Steps to reproduce:

      cp from regression workspace files
      cp /net/vice.russia/export/home0/regression/workspaces/1.6.0/1.6.0_18b02_j4b/j2se/test/java/nio/channels/SocketChannel/AdaptSocket.java .

      cp /net/vice.russia/export/home0/regression/workspaces/1.6.0/1.6.0_18b02_j4b/j2se/test/java/nio/channels/TestUtil.java .

      ik217385@ik217385-desktop:/export/jqa/regression/160u18b02/AdaptSocket$ /export/jdk/jdk1.6.0/bin/javac *.java
      ik217385@ik217385-desktop:/export/jqa/regression/160u18b02/AdaptSocket$ /export/jdk/jdk1.6.0/bin/java AdaptSocket

      opened: Socket[unconnected]
              java.nio.channels.SocketChannel[unconnected]
      connected: Socket[addr=javaweb.sfbay.sun.com/10.5.31.43,port=13,localport=52652]
                 java.nio.channels.SocketChannel[connected local=/10.16.32.162:52652 remote=javaweb.sfbay.sun.com/10.5.31.43:13]
      javaweb.sfbay.sun.com/10.5.31.43:13 says: "Wed Sep 23 01:11:49 2009"
      ishut: java.nio.channels.SocketChannel[connected ishut local=/10.16.32.162:52652 remote=javaweb.sfbay.sun.com/10.5.31.43:13]
      oshut: java.nio.channels.SocketChannel[connected ishut oshut local=/10.16.32.162:52652 remote=javaweb.sfbay.sun.com/10.5.31.43:13]
      closed: Socket[unconnected]
              java.nio.channels.SocketChannel[closed]

      opened: Socket[unconnected]
              java.nio.channels.SocketChannel[unconnected]
      connected: Socket[addr=javaweb.sfbay.sun.com/10.5.31.43,port=13,localport=52653]
                 java.nio.channels.SocketChannel[connected local=/10.16.32.162:52653 remote=javaweb.sfbay.sun.com/10.5.31.43:13]
      javaweb.sfbay.sun.com/10.5.31.43:13 says: "Wed Sep 23 01:11:50 2009"
      ishut: java.nio.channels.SocketChannel[connected ishut local=/10.16.32.162:52653 remote=javaweb.sfbay.sun.com/10.5.31.43:13]
      oshut: java.nio.channels.SocketChannel[connected ishut oshut local=/10.16.32.162:52653 remote=javaweb.sfbay.sun.com/10.5.31.43:13]
      closed: Socket[unconnected]
              java.nio.channels.SocketChannel[closed]

      opened: Socket[unconnected]
              java.nio.channels.SocketChannel[unconnected]
      Connection timed out, as expected

      connected: Socket[addr=javaweb.sfbay.sun.com/10.5.31.43,port=7,localport=36464]
                 java.nio.channels.SocketChannel[connected local=/10.16.32.162:36464 remote=javaweb.sfbay.sun.com/10.5.31.43:7]
      timeout: 0

      connected: Socket[addr=javaweb.sfbay.sun.com/10.5.31.43,port=7,localport=36465]
                 java.nio.channels.SocketChannel[connected local=/10.16.32.162:36465 remote=javaweb.sfbay.sun.com/10.5.31.43:7]
      timeout: 8000

      Exception in thread "main" java.net.ConnectException: Connection timed out
      at sun.nio.ch.Net.connect(Native Method)
      at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
      at AdaptSocket.testRead(AdaptSocket.java:110)
      at AdaptSocket.main(AdaptSocket.java:135)


      I think this is the test problem on irrelevant hosts, that hardcoded in TestUtil.java, because AdaptSocket try to connect on some ports different hosts.

         public static final String HOST = "javaweb.sfbay.sun.com";
         public static final String REFUSING_HOST = "jano.sfbay.sun.com";
         public static final String FAR_HOST = "theclub.ireland.sun.com";
         public static final String UNRESOLVABLE_HOST = "blah-blah.blah-blah.blah";

      Test also fails with the same reason in Dublin (Ireland), so it's not misconfiguration in russia.
      Ping is OK.
      ik217385@ik217385-desktop:/export/jqa/regression/160u18b02/AdaptSocket$ ping javaweb.sfbay.sun.com
      PING javaweb.sfbay.sun.com (10.5.31.43) 56(84) bytes of data.
      64 bytes from javaweb.SFBay.Sun.COM (10.5.31.43): icmp_seq=1 ttl=244 time=190 ms
      64 bytes from javaweb.SFBay.Sun.COM (10.5.31.43): icmp_seq=2 ttl=244 time=198 ms

      So it may be closed ports on this hosts or another.

            asaha Abhijit Saha
            ikobzaresunw Ivan Kobzarev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: