You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Oleg Danilov (JIRA)" <ji...@apache.org> on 2017/08/17 05:06:00 UTC
[jira] [Created] (HDFS-12314) Typo in the
TestDataNodeHotSwapVolumes.testAddOneNewVolume()
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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org