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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-beta1
    • 3.0.0-beta1
    • encryption
    • 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.01.patch
          17 kB
          Xiao Chen
        2. HDFS-12400.02.patch
          18 kB
          Xiao Chen

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment