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] [Created] (HDFS-12314) Typo in the TestDataNodeHotSwapVolumes.testAddOneNewVolume()
Date Thu, 17 Aug 2017 05:06:00 GMT
Oleg Danilov created HDFS-12314:
-----------------------------------

             Summary: 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


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