Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-3570

Replace random NIC selection heuristic by InetAddress.getLocalHost

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0, 1.1.0
    • 1.0.1, 1.1.0
    • Runtime / Coordination
    • 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.

      Attachments

        Activity

          People

            trohrmann Till Rohrmann
            trohrmann Till Rohrmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: