Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8154

DNS#getIPs shouldn't silently return the local host IP for bogus interface names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0, 2.0.0-alpha
    • conf
    • None
    • Incompatible change, Reviewed

    Description

      DNS#getIPs silently returns the local host IP for bogus interface names. In this case let's throw an UnknownHostException. This is technically an incompatbile change. I suspect the current behavior was origininally introduced so the interface name "default" works w/o explicitly checking for it. It may also be used in cases where someone is using a shared config file and an option like "dfs.datanode.dns.interface" or "hbase.master.dns.interface" and eg interface "eth3" that some hosts don't have, though I think silently ignorning this is the wrong behavior (those hosts should be configured to use a different interface).

      Attachments

        1. hadoop-8154.txt
          10 kB
          Eli Collins
        2. hadoop-8154-b1.txt
          1 kB
          Eli Collins

        Activity

          People

            eli Eli Collins
            eli2 Eli Collins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: