HDFS-7157. Using Time.now() for recording start/end time of reconfiguration tasks (Lei Xu via Colin Patrick McCabe)

(cherry picked from commit b3d5d269a7)
This commit is contained in:
Colin Patrick Mccabe 2014-09-29 11:29:54 -07:00
parent 7b8f2f5b1d
commit c412652820
2 changed files with 5 additions and 2 deletions

View File

@ -420,6 +420,9 @@ Release 2.6.0 - UNRELEASED
HADOOP-11140. hadoop-aws only need test-scoped dependency on HADOOP-11140. hadoop-aws only need test-scoped dependency on
hadoop-common's tests jar. (Juan Yu via wang) hadoop-common's tests jar. (Juan Yu via wang)
HDFS-7157. Using Time.now() for recording start/end time of reconfiguration
tasks (Lei Xu via cmccabe)
BREAKDOWN OF HDFS-6134 AND HADOOP-10150 SUBTASKS AND RELATED JIRAS BREAKDOWN OF HDFS-6134 AND HADOOP-10150 SUBTASKS AND RELATED JIRAS
HADOOP-10734. Implement high-performance secure random number sources. HADOOP-10734. Implement high-performance secure random number sources.

View File

@ -134,7 +134,7 @@ public abstract class ReconfigurableBase
} }
synchronized (this.parent.reconfigLock) { synchronized (this.parent.reconfigLock) {
this.parent.endTime = Time.monotonicNow(); this.parent.endTime = Time.now();
this.parent.status = Collections.unmodifiableMap(results); this.parent.status = Collections.unmodifiableMap(results);
this.parent.reconfigThread = null; this.parent.reconfigThread = null;
} }
@ -160,7 +160,7 @@ public abstract class ReconfigurableBase
reconfigThread.setDaemon(true); reconfigThread.setDaemon(true);
reconfigThread.setName("Reconfiguration Task"); reconfigThread.setName("Reconfiguration Task");
reconfigThread.start(); reconfigThread.start();
startTime = Time.monotonicNow(); startTime = Time.now();
} }
} }