You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Lin Yiqun (JIRA)" <ji...@apache.org> on 2015/12/22 09:59:46 UTC

[jira] [Created] (MAPREDUCE-6586) TaskAttempt Page should reset the progress to 0 when its state is failed

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)