RFR: 8220083: Use InetAddress.getLoopbackAddress() in place of 127.0.0.1 for some tests

Martin Buchholz martinrb at google.com
Wed Mar 13 17:29:02 UTC 2019


On Tue, Mar 12, 2019 at 12:21 PM Chris Hegarty <chris.hegarty at oracle.com>
wrote:

>
> > Just curious, what tests did you run and under what environment?
>
> I ran all java/net, sun/net, com/sun/net/, and some nio. I'm have a bit
> of a hacky environment: a JDK build with IPV6_V6ONLY set to 1, and
> preferIPv6Addresses effectively forced. The /etc/hosts on my system
> returns IPv6 addresses for `localhost` and the machine host name. This
> env reproduces the same set of failures as you ( I assume from your
> webrev ), and more. It's just enough to get me started and able to
> review / help out.
>

The difficulty of testing networking environments is an impediment to
progress.
Chris, you might want to publish your hacky changes as an experimental
patch in cr.openjdk.

At Google, we have our own hacks to test ipv6-only environments, based on
either LD_PRELOAD or eBPF (but it would take work to share them even in
minimally functional form)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20190313/bb6e41d9/attachment.html>


More information about the net-dev mailing list