HDFS-12314. Typo in the TestDataNodeHotSwapVolumes.testAddOneNewVolume(). Contributed by Oleg Danilov.

This commit is contained in:
Oleg Danilov 2019-06-18 09:11:25 +03:00 committed by Wei-Chiu Chuang
parent d41310a15d
commit 54cdde38c7

View File

@ -416,7 +416,7 @@ public void testAddOneNewVolume()
minNumBlocks = Math.min(minNumBlocks, blockList.getNumberOfBlocks());
maxNumBlocks = Math.max(maxNumBlocks, blockList.getNumberOfBlocks());
}
assertTrue(Math.abs(maxNumBlocks - maxNumBlocks) <= 1);
assertTrue(Math.abs(maxNumBlocks - minNumBlocks) <= 1);
verifyFileLength(cluster.getFileSystem(), testFile, numBlocks);
}