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-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org