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

DataNode in secure mode may throw NullPointerException if client connects before DataNode registers itself with NameNode.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.6.0
    • datanode, security
    • None
    • Reviewed

    Description

      SaslDataTransferServer#receive needs to check if the DataNode is listening on a privileged port. It does this by checking the address from the DatanodeID. However, there is a window of time when this will be null. If a client is still holding a LocatedBlock that references that DataNode and chooses to connect, then there is a risk of getting a NullPointerException.

      Attachments

        1. HDFS-7382.2.patch
          4 kB
          Chris Nauroth
        2. HDFS-7382.1.patch
          4 kB
          Chris Nauroth

        Issue Links

          Activity

            People

              cnauroth Chris Nauroth
              cnauroth Chris Nauroth
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: