Lin Yiqun created MAPREDUCE-6586:
------------------------------------

             Summary: TaskAttempt Page should reset the progress to 0 when its 
state is failed
                 Key: MAPREDUCE-6586
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6586
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: webapps
    Affects Versions: 2.7.1
            Reporter: Lin Yiqun
            Assignee: Lin Yiqun


The progress of taskAttempt is not correctly showing when the taskAttempt is 
failed. The value is 100.00, but actually the taskAttempt is failed. And I 
found the reason is following:
{code:title=.CompletedTaskAttempt.java|borderStyle=solid}
@Override
  public Counters getCounters() {
    return attemptInfo.getCounters();
  }

  @Override
  public TaskAttemptId getID() {
    return attemptId;
  }

  @Override
  public float getProgress() {
    return 1.0f;
  }
{code}
When the taskAttempt is completed, the progress will always return 1.0 whenever 
the result is failed or succeed. This will let users confused. May be it should 
be reset to 0 better. I attach a screen shot of this case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to