Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-3043

SimpleScheduler does not handle hosts with multiple IP addresses correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: Impala 2.0
    • Fix Version/s: None
    • Component/s: Backend
    • Labels:
      None

      Description

      SimpleScheduler in the backend calls HostnameToIpAddrs() to resolve a host to a list of its IP addresses and then picks the first non-localhost one to identify the host. The underlying call to getaddrinfo() might return multiple IP addresses to the same host in a different order on subsequent calls. The relevant RFC3484 only defines a partial order. A small test program confirmed that the order is not static. As a fix we can sort the result of HostnameToIpAddrs() before picking one.

        Attachments

          Activity

            People

            • Assignee:
              lv Lars Volker
              Reporter:
              lv Lars Volker
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: