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 10:00:54 UTC

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

     [ https://issues.apache.org/jira/browse/MAPREDUCE-6586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lin Yiqun updated MAPREDUCE-6586:
---------------------------------
    Description: 
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.

  was:
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.


> 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)