[ 
https://issues.apache.org/jira/browse/HADOOP-15023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16254578#comment-16254578
 ] 

Hudson commented on HADOOP-15023:
---------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #13241 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/13241/])
HADOOP-15023. ValueQueue should also validate (int) (lowWatermark * (xiao: rev 
b1941b200d6b4fa6a7891421c0a1e212cad3d6eb)
* (edit) 
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/kms/ValueQueue.java


> ValueQueue should also validate (lowWatermark * numValues) > 0 on construction
> ------------------------------------------------------------------------------
>
>                 Key: HADOOP-15023
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15023
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Xiao Chen
>            Assignee: Xiao Chen
>            Priority: Minor
>             Fix For: 2.10.0, 3.0.1
>
>         Attachments: HADOOP-15023.01.patch
>
>
> ValueQueue has precondition checks for each item independently, but does not 
> check {{(int)(lowWatermark * numValues) > 0}}. If the product is low enough, 
> casting to int will wrap that to 0, causing problems later when filling / 
> getting from the queue.
> [code|https://github.com/apache/hadoop/blob/branch-3.0.0-beta1/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/kms/ValueQueue.java#L224]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to