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

NetUtils#getHostNameOfIP blows up if given ip:port string w/o port

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-alpha
    • None
    • None
    • Reviewed

    Description

      NetUtils#getHostNameOfIP blows up if not given a string of form ip:port, because the regex matches the port optionally but the code requires a semicolon. It also doesn't check the given string for null.

      Attachments

        1. hadoop-8238.txt
          3 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: