[
https://issues.apache.org/jira/browse/HADOOP-13202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15302059#comment-15302059
]
Kai Sasaki commented on HADOOP-13202:
-------------------------------------
Though {{Math.toIntExact}} is a JDK8 API, HADOOP-11858 set minimum version
JDK8. So it seems okay from Hadoop 3 to use.
> Implementation of getNBytes in org.apache.hadoop.util.bloom.BloomFilter might
> be changed
> ----------------------------------------------------------------------------------------
>
> Key: HADOOP-13202
> URL: https://issues.apache.org/jira/browse/HADOOP-13202
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 2.7.2
> Reporter: zhengbing li
> Assignee: Kai Sasaki
> Attachments: HADOOP-13202.01.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Current implementation:
> return (vectorSize + 7) / 8;
> when vectorSize is 2147483647(the max value of Int), error
> :"java.lang.NegativeArraySizeException" will report
> the implementation might be changed
> return (int)(((long)vectorSize + 7) / 8);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]