MAPREDUCE-4836. Elapsed time for running tasks on AM web UI tasks page is 0. (Ravi Prakash via jeagles)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1415860 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
571da54179
commit
fdcfef0a26
@ -604,6 +604,9 @@ Release 0.23.6 - UNRELEASED
|
|||||||
MAPREDUCE-4817. Hardcoded task ping timeout kills tasks localizing large
|
MAPREDUCE-4817. Hardcoded task ping timeout kills tasks localizing large
|
||||||
amounts of data (tgraves)
|
amounts of data (tgraves)
|
||||||
|
|
||||||
|
MAPREDUCE-4836. Elapsed time for running tasks on AM web UI tasks page is 0
|
||||||
|
(Ravi Prakash via jeagles)
|
||||||
|
|
||||||
Release 0.23.5 - UNRELEASED
|
Release 0.23.5 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -59,11 +59,12 @@ public TaskInfo(Task task) {
|
|||||||
TaskReport report = task.getReport();
|
TaskReport report = task.getReport();
|
||||||
this.startTime = report.getStartTime();
|
this.startTime = report.getStartTime();
|
||||||
this.finishTime = report.getFinishTime();
|
this.finishTime = report.getFinishTime();
|
||||||
this.elapsedTime = Times.elapsed(this.startTime, this.finishTime, false);
|
this.state = report.getTaskState();
|
||||||
|
this.elapsedTime = Times.elapsed(this.startTime, this.finishTime,
|
||||||
|
this.state == TaskState.RUNNING);
|
||||||
if (this.elapsedTime == -1) {
|
if (this.elapsedTime == -1) {
|
||||||
this.elapsedTime = 0;
|
this.elapsedTime = 0;
|
||||||
}
|
}
|
||||||
this.state = report.getTaskState();
|
|
||||||
this.progress = report.getProgress() * 100;
|
this.progress = report.getProgress() * 100;
|
||||||
this.id = MRApps.toString(task.getID());
|
this.id = MRApps.toString(task.getID());
|
||||||
this.taskNum = task.getID().getId();
|
this.taskNum = task.getID().getId();
|
||||||
|
Loading…
Reference in New Issue
Block a user