[
https://issues.apache.org/jira/browse/TEZ-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14086180#comment-14086180
]
Jeff Zhang commented on TEZ-1024:
---------------------------------
bq. should there be another else clause for killed attempts?
No extra action needs to be taken for killed attempts.
Attach the new patch.
Changes in patch:
* Fix one bug that TaskAttempt should recover to KILLED rather than FAILED if
it is in RUNNING in the previous am attempt.
* Move all unit test into TestTaskRecovery. Because TestTaskImpl is not
suitable for test recovery feature, especially the event handler which need to
route event between Task and TaskAttempt.
* Add verification at the end of unit test to check whether new TaskAttempt is
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-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)