[ https://issues.apache.org/jira/browse/HDFS-7209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165162#comment-14165162 ]
Charles Lamb commented on HDFS-7209: ------------------------------------ [~hitliuyi], Good idea for this patch. It will at least fill the cache in the case where the EZ is created by the admin in the same NN session. A little nit: I think your IDE added whitespace right before ValueQueue#getSize(), and in KMSClientProvider right before the VisibleForTesting tag. > fill the key queue when creating encryption zone > ------------------------------------------------ > > Key: HDFS-7209 > URL: https://issues.apache.org/jira/browse/HDFS-7209 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: encryption, performance > Affects Versions: 2.6.0 > Reporter: Yi Liu > Assignee: Yi Liu > Attachments: HDFS-7209.001.patch > > > Currently when creating file in an encryption zone for the first time, key > provider will get bunch of keys from KMS and fill in the queue. It will take > some time. We can initialize the key queue when creating the encryption zone > by admin. -- This message was sent by Atlassian JIRA (v6.3.4#6332)