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

In DFSInputStream, do not add datanode to deadNodes after InvalidEncryptionKeyException in fetchBlockByteRange

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.3.0
    • Component/s: hdfs-client
    • Labels:
      None
    • Target Version/s:

      Description

      Found this issue when i read fetchBlockByteRange code:
      If we hit InvalidEncryptionKeyException, current logic is:
      1) reduce the retry count
      2) clearDataEncryptionKey
      3) addToDeadNodes
      4) retry in another loop...

      If i am correct, we should treat InvalidEncryptionKeyException similar with InvalidBlockToken branch, bypassing addToDeadNodes(), since it's a client related, not caused by DN side

        Attachments

        1. HDFS-5766.txt
          0.7 kB
          Liang Xie

          Activity

            People

            • Assignee:
              xieliang007 Liang Xie
              Reporter:
              xieliang007 Liang Xie
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: