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

Provide a way for NN to drain the local key cache before re-encryption

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-beta1
    • Fix Version/s: 3.0.0-beta1
    • Component/s: encryption
    • Labels:
      None

      Description

      In HDFS-12359, a fix for the KMS ACLs required for re-encryption was done. As part of the fix, the following code is used to make sure the local provider cache in the NN is drained.

      if (dir.getProvider() instanceof CryptoExtension) {
        ((CryptoExtension) dir.getProvider()).drain(keyName);
      }
      

      This doesn't work, because the provider is KeyProviderCryptoExtension instead of CryptoExtension - the latter is composite of the former.

      Unfortunately unit test didn't catch this, because it conveniently rolled the from the NN's provider.

        Attachments

        1. HDFS-12400.02.patch
          18 kB
          Xiao Chen
        2. HDFS-12400.01.patch
          17 kB
          Xiao Chen

          Issue Links

            Activity

              People

              • Assignee:
                xiaochen Xiao Chen
                Reporter:
                xiaochen Xiao Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: