Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11387

Socket reuse address option is not honored in PrivilegedNfsGatewayStarter

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

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha4
    • nfs
    • None
    • Reviewed

    Description

      Socket resuse address option is not honored in PrivilegedNfsGatewayStarter

      This happens because the registrationSocket is first bind and then the options is set.

      According to from https://docs.oracle.com/javase/7/docs/api/java/net/StandardSocketOptions.html#SO_REUSEADDR
      Changing the value of this socket option after the socket is bound has no effect. The default value of this socket option is system dependent.

      Need to change this to first set the option on the socket and then bind it.

      Attachments

        1. HDFS-11387.001.patch
          1 kB
          Mukul Kumar Singh

        Activity

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

          People

            msingh Mukul Kumar Singh
            msingh Mukul Kumar Singh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment