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

ServerSocketUtil.getPort() should use loopback address, not 0.0.0.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.1, 3.4.0, 3.2.3
    • 3.3.1, 3.4.0, 3.2.3
    • net
    • None

    Description

      Using 0.0.0.0 to check for a free port will succeed even if there's something bound to that same port on the loopback interface. Since this function is used primarily in testing, it should be checking the loopback interface for free ports.

      Attachments

        1. HADOOP-13571.001.patch
          1.0 kB
          Eric Badger
        2. HADOOP-13571.002.patch
          1.0 kB
          Eric Badger

        Activity

          People

            ebadger Eric Badger
            ebadger Eric Badger
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: