hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Danilov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-12314) Typo in the TestDataNodeHotSwapVolumes.testAddOneNewVolume()
Date Thu, 17 Aug 2017 05:15:00 GMT

     [ 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


Mime
View raw message