RFR(S): 8222769: [TESTBUG] TestJFRNetworkEvents should not rely on hostname command

Leonid Mesnik leonid.mesnik at oracle.com
Fri Apr 26 01:25:46 UTC 2019


Hi

The overall fix looks food. But I expect that there are might be different docker environments.
Would not be more robust to verify that address exist in getLocalIp() list and fails if not?

Leonid

> On Apr 25, 2019, at 5:51 PM, mikhailo.seledtsov at oracle.com wrote:
> 
> Please review this change that uses a better platform independent way of obtaining IP address inside a docker container.
> This test worked for Oracle Linux, but did not work on Fedora, which is now fixed.
> The code for obtaining IP address in getLocalIp() was contributed by Severin, thank you Severin.
> 
>     JBS: https://bugs.openjdk.java.net/browse/JDK-8222769
>     Webrev: http://cr.openjdk.java.net/~mseledtsov/8222769.00/
>     Testing:
>         Ran the affected test on Linux-x64 (Oracle Linux 7.3, 7.6) - Passed
> 
> 
> Thank you,
> Misha
> 



More information about the hotspot-runtime-dev mailing list