[
https://issues.apache.org/jira/browse/HADOOP-10720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14063100#comment-14063100
]
Arun Suresh commented on HADOOP-10720:
--------------------------------------
So, {{initValue}} is actually the number of values that are synchronously
pushed into a key's queue, when it is first created (when Cache's {{load}}
method is called / or when a warmup is requested) and {{lowWatermark}} is
threshold below which for an existing key's Queue, will be asynchronously
filled. I have 2 constructors, one that takes an {{numInitValues}} (which I
used on the server) and one that assumes {{numInitValues}} = {{numValues}}
(which I used for the client). My assumption was that the Server would cache a
lot more values of a key, so initValues can be less than numValues.
A {{SyncGenerationPolicy.ATLEAST_ONE / INIT_VALUE / LOW_WATERMARK / ALL}}
policy just states that when a client calls the {{getAtMost(n)}}, at least {{1
/ initValue / lowWaterMark / n}} entries are returned synchronously.
I guess the confusion was due to the placement of the comments. Also : yes, I
think I should remove the INIT_VALUE policy and constructor parameter all
together and assume the initializationValue for a Queue is {{lowWatermark}}.
> KMS: Implement generateEncryptedKey and decryptEncryptedKey in the REST API
> ---------------------------------------------------------------------------
>
> Key: HADOOP-10720
> URL: https://issues.apache.org/jira/browse/HADOOP-10720
> Project: Hadoop Common
> Issue Type: Improvement
> Components: security
> Affects Versions: 3.0.0
> Reporter: Alejandro Abdelnur
> Assignee: Arun Suresh
> Attachments: COMBO.patch, COMBO.patch, COMBO.patch, COMBO.patch,
> COMBO.patch, HADOOP-10720.1.patch, HADOOP-10720.2.patch,
> HADOOP-10720.3.patch, HADOOP-10720.4.patch, HADOOP-10720.5.patch,
> HADOOP-10720.6.patch, HADOOP-10720.7.patch, HADOOP-10720.8.patch,
> HADOOP-10720.9.patch, HADOOP-10720.patch, HADOOP-10720.patch,
> HADOOP-10720.patch, HADOOP-10720.patch, HADOOP-10720.patch
>
>
> KMS client/server should implement support for generating encrypted keys and
> decrypting them via the REST API being introduced by HADOOP-10719.
--
This message was sent by Atlassian JIRA
(v6.2#6252)