Skip to content

Commit 9b6a712

Browse files
committed
HDFS-16119. start balancer with parameters -hotBlockTimeInterval xxx is invalid
1 parent c2cd0bd commit 9b6a712

File tree

1 file changed

+1
-1
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer

1 file changed

+1
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ public void testBalancerDispatchHotBlockTimeInterval() {
12591259
Field field1 = dispatcher.getClass().getDeclaredField("hotBlockTimeInterval");
12601260
field1.setAccessible(true);
12611261
Object hotBlockTimeInterval = field1.get(dispatcher);
1262-
assertEquals(1000, Long.parseLong(String.valueOf(hotBlockTimeInterval)));
1262+
assertEquals(1000, (long)hotBlockTimeInterval);
12631263
} catch (Exception e) {
12641264
Assert.fail(e.getMessage());
12651265
}

0 commit comments

Comments
 (0)