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

Some vmTestbase/nsk/monitoring/RuntimeMXBean tests fail with hostnames starting from digits

    XMLWordPrintable

    Details

      Backports

        Description

        -------------------- Symptom ---------------------------
        STDOUT:
        RuntimeMXBean.getName() returned "111096@8225aa0702bd".
        Test failure: name did not match format <pid>@<hostname>: "111096@8225aa0702bd"
        STDERR:
        nsk.share.TestFailure: Test exit code: 97
                at nsk.share.test.Tests$TestRunner.execute(Tests.java:90)
                at nsk.share.test.Tests$TestRunner.run(Tests.java:96)
                at nsk.monitoring.share.Monitoring.runTest(Monitoring.java:112)
                at nsk.monitoring.RuntimeMXBean.RuntimeMXBean006.RuntimeMXBean006.main(RuntimeMXBean006.java:79)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:564)
                at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
                at java.base/java.lang.Thread.run(Thread.java:832)

        JavaTest Message: Test threw exception: nsk.share.TestFailure: Test exit code: 97
        JavaTest Message: shutting down test
        -----------------------------------------------------------

        -------------------- Reproduce ---------------------------
        1. Change the hostname to be started with digits.
           E.g., on linux, use: hostname 123456

        2. Run the following tests:
           vmTestbase/nsk/monitoring/RuntimeMXBean/RuntimeMXBean006/RuntimeMXBean006.java
           vmTestbase/nsk/monitoring/RuntimeMXBean/RuntimeMXBean007/TestDescription.java
           vmTestbase/nsk/monitoring/RuntimeMXBean/RuntimeMXBean008/TestDescription.java
           vmTestbase/nsk/monitoring/RuntimeMXBean/RuntimeMXBean009/TestDescription.java
           vmTestbase/nsk/monitoring/RuntimeMXBean/RuntimeMXBean010/TestDescription.java
        -----------------------------------------------------------

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jiefu Jie Fu
                Reporter:
                jiefu Jie Fu
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: