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

David Holmes david.holmes at oracle.com
Tue Aug 4 10:51:35 UTC 2020


Hi Jie,

On 4/08/2020 7:08 pm, jiefu(傅杰) wrote:
> 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.

I don't process regular expressions very well but I can see the addition 
of the 0-9 character class in the expression so that appears fine. :)

What I don't understand is why we aren't simply splitting the string at 
'@' and taking the pid and hostname directly. (That's somewhat 
rhetorical I don't expect you to change the test.)

Thanks,
David
-----

> 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 hotspot-runtime-dev mailing list