[ 
https://issues.apache.org/jira/browse/TEZ-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14085013#comment-14085013
 ] 

Hitesh Shah commented on TEZ-1024:
----------------------------------

{code}
+        } else if (taskAttemptState.equals(TaskAttemptState.FAILED)){
+          failedAttempts++;
{code}
  - should there be another else clause for killed attempts? 

Also, for tests:
  - in testTaskRecovery1, can you confirm that a new task attempt was launched. 
  - add another test, where the last attempt was still in a running state. When 
recovering, this running attempt should move into killed state and a new 
attempt launched. 

> Fix determination of failed attempts
> ------------------------------------
>
>                 Key: TEZ-1024
>                 URL: https://issues.apache.org/jira/browse/TEZ-1024
>             Project: Apache Tez
>          Issue Type: Sub-task
>            Reporter: Bikas Saha
>            Assignee: Jeff Zhang
>         Attachments: Tez-1024.patch
>
>
> Current code looks at task max.attempts to determine if we have already run 
> too many attempts in the previous attempt. However, this would miscount 
> killed attempts (due to preemptione etc) as failed attempts. We should 
> probably be looking at the attempt status to determine the number of failed 
> attempts.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to