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

DataXceiverServer May Double-Close PeerServer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.3.0
    • Component/s: datanode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Flags:
      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

            People

            • Assignee:
              belugabehr David Mollitor
              Reporter:
              belugabehr David Mollitor
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: