On Wed, 21 Aug 2024 03:45:24 GMT, SendaoYan <[email protected]> wrote:
> Hi,
> On linux test environments which has docker service, `ifconfig` shows that
> `docker0` appears to be a virtual ethernet bridge which is created by the
> docker host. And the `docker0` virtual ethernet bridge may cause test
> `java/nio/channels/DatagramChannel/SendReceiveMaxSize.java` bind `docker0`
> ander network port.
> I think we should just skip "docker0" interfaces when looking for an IPv4
> address for tests.
> Change has been verified, test fix only, the risk is low.
Looks OK to me. Should we be adding that check even within the `if
(Platform.isOSX()) {` a few lines above? I suspect even macos can have
`docker0` interface?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20658#issuecomment-2301902868