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

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

Looks good for the most part. 

Minor comments:

{code}
+        taskAttempt.sendEvent(new TaskEventTAUpdate(taskAttempt.attemptId,
+        TaskEventType.T_ATTEMPT_KILLED));
+        endState = TaskAttemptStateInternal.KILLED;
{code}
  - indenting seems off. 

 - testTaskRecovery1/testTaskRecovery2/testTaskRecovery3 - can we get better 
names for this functions to define what they are testing. If not, a simple 
function description should help clarify each test.


   

> 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-2.patch, 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