You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Devaraj Das (JIRA)" <ji...@apache.org> on 2008/01/29 05:52:35 UTC
[jira] Commented: (HADOOP-2726) Remove dead code block in
JobInProgress.completedTask
[ https://issues.apache.org/jira/browse/HADOOP-2726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563379#action_12563379 ]
Devaraj Das commented on HADOOP-2726:
-------------------------------------
+1
> Remove dead code block in JobInProgress.completedTask
> ------------------------------------------------------
>
> Key: HADOOP-2726
> URL: https://issues.apache.org/jira/browse/HADOOP-2726
> Project: Hadoop Core
> Issue Type: Improvement
> Components: mapred
> Affects Versions: 0.15.0
> Reporter: Arun C Murthy
> Fix For: 0.17.0
>
>
> Since the taskCommitThread ensures that one and only one task of a given TIP is marked as SUCCEEDED, we don't need the code block in JobInProgress.completedTask which checks if the TIP is complete and then just marks the task as complete:
> {noformat}
> // Sanity check: is the TIP already complete?
> if (tip.isComplete()) {
> // Mark this task as KILLED
> tip.alreadyCompletedTask(taskid);
> // Let the JobTracker cleanup this taskid if the job isn't running
> if (this.status.getRunState() != JobStatus.RUNNING) {
> jobtracker.markCompletedTaskAttempt(status.getTaskTracker(), taskid);
> }
> return false;
> }
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.