File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,6 @@ public void shutdown() throws Exception {
169
169
static final double CAPACITY_ALLOWED_VARIANCE = 0.005 ; // 0.5%
170
170
static final double BALANCE_ALLOWED_VARIANCE = 0.11 ; // 10%+delta
171
171
static final int DEFAULT_BLOCK_SIZE = 100 ;
172
- static final int DEFAULT_RAM_DISK_BLOCK_SIZE = 5 * 1024 * 1024 ;
173
172
private static final Random r = new Random ();
174
173
175
174
static {
Original file line number Diff line number Diff line change @@ -723,10 +723,12 @@ public void testMaxIterationTime() throws Exception {
723
723
LOG .info ("NNC to work on: " + nnc );
724
724
Balancer b = new Balancer (nnc , bParams , conf );
725
725
Balancer .Result r = b .runOneIteration ();
726
- // Since no block cannot be moved in 2 seconds (i.e.,
727
- // 4MB/s * 2s = 8MB < 10MB), NO_MOVE_PROGRESS will be reported.
728
- // When a block move is not canceled in 2 seconds properly and then
729
- // a block is moved unexpectedly, IN_PROGRESS will be reported.
726
+ // Since no block can be moved in 500 milli-seconds (i.e.,
727
+ // 4MB/s * 0.5s = 2MB < 10MB), NO_MOVE_PROGRESS will be reported.
728
+ // When a block move is not canceled in 500 ms properly
729
+ // (highly unlikely) and then a block is moved unexpectedly,
730
+ // IN_PROGRESS will be reported. This is highly unlikely unexpected
731
+ // case. See HDFS-15989.
730
732
assertEquals ("We expect ExitStatus.NO_MOVE_PROGRESS to be reported." ,
731
733
ExitStatus .NO_MOVE_PROGRESS , r .getExitStatus ());
732
734
assertEquals (0 , r .getBlocksMoved ());
You can’t perform that action at this time.
0 commit comments