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
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ public class TestDataNodeHotSwapVolumes {
minNumBlocks = Math.min(minNumBlocks, blockList.getNumberOfBlocks()); minNumBlocks = Math.min(minNumBlocks, blockList.getNumberOfBlocks());
maxNumBlocks = Math.max(maxNumBlocks, 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); verifyFileLength(cluster.getFileSystem(), testFile, numBlocks);
} }