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

DataXceiverServer May Double-Close PeerServer

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.2.0
    • 3.3.0
    • datanode
    • None
    • Reviewed
    • Patch

    Description

      Based on my work with HDFS-14258, I noticed that when a user calls the kill() method in DataXceiverServer, it closes the PeerServer. This causes the thread responsible for receiving connections from the PeerServer to interrupt and then exit. On the way out, this thread also closes the PeerServer for good measure. I'm not sure what the affects of closing the PeerServer are twice, but it should be avoided.

      To be clear, this is not a regressions caused by HDFS-14258, if anything, HDFS-14258 makes it easier to fix.

      Attachments

        1. HDFS-14287.1.patch
          2 kB
          David Mollitor

        Activity

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

          People

            belugabehr David Mollitor
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            4 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment