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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.3.0
    • hdfs-client
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: