HDFS-8004. Use KeyProviderCryptoExtension#warmUpEncryptedKeys when creating an encryption zone. (awang via asuresh)

This commit is contained in:
Arun Suresh 2015-03-27 19:23:45 -07:00
parent 3836ad6c0b
commit e97f8e44af
2 changed files with 4 additions and 1 deletions

View File

@ -344,6 +344,9 @@ Release 2.8.0 - UNRELEASED
HDFS-7990. IBR delete ack should not be delayed. (daryn via kihwal) HDFS-7990. IBR delete ack should not be delayed. (daryn via kihwal)
HDFS-8004. Use KeyProviderCryptoExtension#warmUpEncryptedKeys when creating
an encryption zone. (awang via asuresh)
OPTIMIZATIONS OPTIMIZATIONS
BUG FIXES BUG FIXES

View File

@ -7957,7 +7957,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
throw new IOException("Key " + keyName + " doesn't exist."); throw new IOException("Key " + keyName + " doesn't exist.");
} }
// If the provider supports pool for EDEKs, this will fill in the pool // If the provider supports pool for EDEKs, this will fill in the pool
generateEncryptedDataEncryptionKey(keyName); provider.warmUpEncryptedKeys(keyName);
createEncryptionZoneInt(src, metadata.getCipher(), createEncryptionZoneInt(src, metadata.getCipher(),
keyName, logRetryCache); keyName, logRetryCache);
} catch (AccessControlException e) { } catch (AccessControlException e) {