Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-6586

TaskAttempt Page should reset the progress to 0 when its state is failed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.7.1
    • Fix Version/s: None
    • Component/s: webapps
    • Labels:
      None

      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:

      CompletedTaskAttempt.java
      @Override
        public Counters getCounters() {
          return attemptInfo.getCounters();
        }
      
        @Override
        public TaskAttemptId getID() {
          return attemptId;
        }
      
        @Override
        public float getProgress() {
          return 1.0f;
        }
      

      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.

        Attachments

        1. Screen shot 2015-12-22.png
          231 kB
          Yiqun Lin
        2. MAPREDUCE-6586.001.patch
          1 kB
          Yiqun Lin

          Activity

            People

            • Assignee:
              linyiqun Yiqun Lin
              Reporter:
              linyiqun Yiqun Lin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: