You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Oleg Danilov (JIRA)" <ji...@apache.org> on 2017/08/17 05:15:00 UTC
[jira] [Updated] (HDFS-12314) Typo in the
TestDataNodeHotSwapVolumes.testAddOneNewVolume()
[ https://issues.apache.org/jira/browse/HDFS-12314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Danilov updated HDFS-12314:
--------------------------------
Attachment: HDFS-12314.patch
> Typo in the TestDataNodeHotSwapVolumes.testAddOneNewVolume()
> ------------------------------------------------------------
>
> Key: HDFS-12314
> URL: https://issues.apache.org/jira/browse/HDFS-12314
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Oleg Danilov
> Priority: Trivial
> Attachments: HDFS-12314.patch
>
>
> Should be maxNumBlocks-minNumBlocks
> lines 410-414:
> {code:java}
> for (BlockListAsLongs blockList : blockReports.get(0).values()) {
> minNumBlocks = Math.min(minNumBlocks, blockList.getNumberOfBlocks());
> maxNumBlocks = Math.max(maxNumBlocks, blockList.getNumberOfBlocks());
> }
> assertTrue(Math.abs(maxNumBlocks - maxNumBlocks) <= 1);
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org