Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 86558 invoked from network); 2 Apr 2008 18:33:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 18:33:55 -0000 Received: (qmail 57939 invoked by uid 500); 2 Apr 2008 18:33:53 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 57913 invoked by uid 500); 2 Apr 2008 18:33:53 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 57904 invoked by uid 99); 2 Apr 2008 18:33:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 11:33:53 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 18:33:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2EAD8234C0B8 for ; Wed, 2 Apr 2008 11:31:25 -0700 (PDT) Message-ID: <78093282.1207161085190.JavaMail.jira@brutus> Date: Wed, 2 Apr 2008 11:31:25 -0700 (PDT) From: "Amar Kamat (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3140) JobTracker should not try to promote a (map) task if it does not write to DFS at all In-Reply-To: <966868178.1206998545494.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584711#action_12584711 ] Amar Kamat commented on HADOOP-3140: ------------------------------------ Arun, Two things 1) If the status is replayed by the TaskTracker, the JobTracker will take care of that. The {{JobTracker.heartbeat()}} will simply discard it there and then. 2) If at all the status gets replayed (in {{JobInProgress.updateTaskStatus()}}) it will be taken care as follows a) task t comes in as {{SUCCEEDED}} for a tip that is already completed. b) It will be marked (locally) as {{KILLED}} and the tasks status will be updated in the JT. c) If at all the status is resent, it will be marked locally as {{KILLED}}. Now the *change* in the status will result in as _false_ and nothing will happen. The reason for marking the task as {{KILLED}} (locally) is to make sure that the semantics of the trunk is retained. If the state is updated first and later marked as {{KILLED}} then the task status will be temporarily marked as {{SUCCEEDED}}. > JobTracker should not try to promote a (map) task if it does not write to DFS at all > ------------------------------------------------------------------------------------ > > Key: HADOOP-3140 > URL: https://issues.apache.org/jira/browse/HADOOP-3140 > Project: Hadoop Core > Issue Type: Bug > Components: mapred > Reporter: Runping Qi > Assignee: Amar Kamat > Fix For: 0.17.0 > > Attachments: HADOOP-3140-v1.patch > > > In most cases, map tasks do not write to dfs. > Thus, when they complete, they should not be put into commit_pending queue at all. > This will improve the task promotion significantly. > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.