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

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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.1, 3.4.0, 3.2.3
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment