hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jing Zhao (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8190) StripedBlockUtil.getInternalBlockLength may have overflow error
Date Tue, 21 Apr 2015 00:44:00 GMT

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

Jing Zhao commented on HDFS-8190:
---------------------------------

+1 for the new patch as well.

> StripedBlockUtil.getInternalBlockLength may have overflow error
> ---------------------------------------------------------------
>
>                 Key: HDFS-8190
>                 URL: https://issues.apache.org/jira/browse/HDFS-8190
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>             Fix For: HDFS-7285
>
>         Attachments: h8190_20150420.patch, h8190_20150420b.patch
>
>
> Both numStripes and cellSize are int but
> {code}
> long blkSize = (numStripes - 1) * cellSize;
> {code}
> When the actually block size > Integer.MAX_VALUE, the computation has overflow error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message