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

TestJpsHostName.java not reliable, better to expand HostIdentifierCreate.java test

XMLWordPrintable

    • b24


        8251155 introduces a test which uses jps to check we can handle a hostname which is numeric. This test runs jps on a fictional process, e.g. pid 12345, and passes as long as a malformed address exception is not seen.

        I see the test taking 2min30s to timeout and fail on my system, and I see mach5 runs that can take 7 minutes, and pass.

        My system times out and fails, I see mach5 systems with the error:
        Exception creating connection to: 12345; nested exception is:
        java.net.SocketException: Network is unreachable: connect
        ..but not a test failure.

        As we already have a HostIdentifier test, we should add the test patterns from
        test/jdk/sun/tools/jps/TestJpsHostName.java into
        open/test/jdk/sun/jvmstat/monitor/HostIdentifier/HostIdentifierCreate.java and test the creation of a HostIdentifier with the numeric patterns.

              kevinw Kevin Walls
              kevinw Kevin Walls
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: