You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "zhengbing li (JIRA)" <ji...@apache.org> on 2016/05/25 03:52:12 UTC

[jira] [Updated] (HADOOP-13202) Implementation of getNBytes in org.apache.hadoop.util.bloom.BloomFilter might be changed

     [ https://issues.apache.org/jira/browse/HADOOP-13202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

zhengbing li updated HADOOP-13202:
----------------------------------
    Description: 
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);





  was:
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;






> 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
>   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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org