|
@@ -34,6 +34,7 @@ import org.apache.hadoop.hdfs.protocol.DatanodeInfo;
|
|
|
import org.apache.hadoop.hdfs.server.namenode.NameNode;
|
|
|
import org.apache.hadoop.hdfs.util.LightWeightHashSet;
|
|
|
import org.apache.hadoop.util.Time;
|
|
|
+import org.apache.hadoop.hdfs.DFSUtil;
|
|
|
|
|
|
import com.google.common.annotations.VisibleForTesting;
|
|
|
|
|
@@ -67,8 +68,8 @@ class InvalidateBlocks {
|
|
|
}
|
|
|
|
|
|
private void printBlockDeletionTime(final Log log) {
|
|
|
- log.info(DFSConfigKeys.DFS_NAMENODE_STARTUP_DELAY_BLOCK_DELETION_MS_KEY
|
|
|
- + " is set to " + pendingPeriodInMs + " ms.");
|
|
|
+ log.info(DFSConfigKeys.DFS_NAMENODE_STARTUP_DELAY_BLOCK_DELETION_SEC_KEY
|
|
|
+ + " is set to " + DFSUtil.durationToString(pendingPeriodInMs));
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy MMM dd HH:mm:ss");
|
|
|
Calendar calendar = new GregorianCalendar();
|
|
|
calendar.add(Calendar.SECOND, (int) (this.pendingPeriodInMs / 1000));
|