Jackie-Jiang commented on pull request #6781:
URL: https://github.com/apache/incubator-pinot/pull/6781#issuecomment-818479537
From a failed GitHub Actions run:
```
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:ae:a2:0b:9e txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.1.1.85 netmask 255.255.0.0 broadcast 10.1.255.255
inet6 fe80::222:48ff:fe4c:14e3 prefixlen 64 scopeid 0x20<link>
ether 00:22:48:4c:14:e3 txqueuelen 1000 (Ethernet)
RX packets 128352 bytes 188223345 (188.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4905 bytes 719102 (719.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 238 bytes 26948 (26.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 238 bytes 26948 (26.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
```
```
NetUtil.getHostAddress(): 10.1.1.85
InetAddress.getLocalHost().getHostName(): fv-az212-648
InetAddress.getLocalHost().getHostAddress(): 10.1.0.114
InetAddress.getLocalHost().getCanonicalHostName(): 10.1.0.114
InetAddress.getLoopbackAddress().getHostName(): localhost
InetAddress.getLoopbackAddress().getHostAddress(): 127.0.0.1
InetAddress.getLoopbackAddress().getCanonicalHostName(): localhost
io.netty.util.NetUtil.LOCALHOST.getHostName(): localhost
io.netty.util.NetUtil.LOCALHOST.getHostAddress(): 0:0:0:0:0:0:0:1%lo
io.netty.util.NetUtil.LOCALHOST.getCanonicalHostName(): localhost
```
Notice that `NetUtil.getHostAddress()` is giving the correct eth0 address
while `InetAddress.getLocalHost().getHostAddress()` is not.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]