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

vmTestbase/nsk/monitoring/RuntimeMXBean tests can fail on Windows if hostname contains unsupported characters

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: core-svc
    • Labels:
      None

      Description

      Windows is very liberal with what is allowed for a hostname, it allows it to end with a `-`, contain `_` and even umlauts. If this is the case, the regex doesn't match the hostname and some of the tests fail:

      RuntimeMXBean.getName() returned "6980@2b\u00e4d_f\u00f6r-u-".
      Test failure: name did not match format <pid>@<hostname>: "6980@2b\u00e4d_f\u00f6r-u-"

      RuntimeMXBean.getName() returned "2140@bad-hostname-".
      Test failure: name did not match format <pid>@<hostname>: "2140@bad-hostname-"

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ctornqvi Christian Tornqvist
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: