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

Chris Plummer chris.plummer at oracle.com
Tue Aug 4 18:20:28 UTC 2020


Hi Jie,

The fix appears to directly address the issue of allowing a hostname to 
start with a digit. I'm still not convinced that the check will properly 
validate the hostname in all cases, but maybe that's a fix for another day:

https://stackoverflow.com/questions/1418423/the-hostname-regex

thanks,

Chris

On 8/4/20 8:10 AM, jiefu(傅杰) wrote:
>
> Forward it to serviceability-dev since this issue in the JBS has been 
> moved  from hotspot/runtime to core-svc/java.lang.management.
>
> Please review it.
>
> Thanks.
>
> Best regards,
>
> Jie
>
> *From: *"jiefu(傅杰)" <jiefu at tencent.com>
> *Date: *Tuesday, August 4, 2020 at 5:10 PM
> *To: *"hotspot-runtime-dev at openjdk.java.net" 
> <hotspot-runtime-dev at openjdk.java.net>
> *Subject: *RFR: 8251031: Some vmTestbase/nsk/monitoring/RuntimeMXBean 
> tests fail with hostnames starting from digits
>
> Hi all,
>
> JBS: https://bugs.openjdk.java.net/browse/JDK-8251031
>
> Webrev: http://cr.openjdk.java.net/~jiefu/8251031/webrev.00/
>
> Some vmTestbase/nsk/monitoring/RuntimeMXBean tests failed in our test 
> infrastructure.
>
> The reason is that these tests reject hostnames starting with digits.
>
> However, hostnames starting from digits are actually valid according 
> to RFC1123 [1][2].
>
> It would be better to fix it.
>
> Thanks a lot.
>
> Best regards,
>
> Jie
>
> [1] https://tools.ietf.org/html/rfc1123#page-13
>
> [2] https://en.wikipedia.org/wiki/Hostname
>




More information about the serviceability-dev mailing list