Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.0, 1.1.0
-
None
Description
Currently, the ConnectionUtils.findAddressUsingStrategy method returns the first NetworkInterface whose address is not a loop back address, not a link local address and an Inet4Address. Before returning this address, it is retried to connect to the JobManager using the InetAddress.getLocalHost address a last time.
The heuristic, if not choosing the InetAddress.getLocalHost, often makes no sense because it returns a random NetworkInterface address. It would be better to simply return the InetAddress.getLocalHost() instead.