Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
0.21.0
-
None
Description
In the file:
./hadoop-0.21.0/hdfs/src/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java line:1520
In the while loop, DateFormat.getDateTimeInstance()is called in each iteration. We can cache the result by moving it outside the loop or adding a class member.
This is similar to the Apache bug https://issues.apache.org/bugzilla/show_bug.cgi?id=48778