Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 75980 invoked from network); 10 Oct 2008 16:18:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Oct 2008 16:18:37 -0000 Received: (qmail 43167 invoked by uid 500); 10 Oct 2008 16:18:34 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 43137 invoked by uid 500); 10 Oct 2008 16:18:34 -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 43126 invoked by uid 99); 10 Oct 2008 16:18:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2008 09:18:34 -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; Fri, 10 Oct 2008 16:17:37 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6566E234C224 for ; Fri, 10 Oct 2008 09:17:44 -0700 (PDT) Message-ID: <1195952636.1223655464414.JavaMail.jira@brutus> Date: Fri, 10 Oct 2008 09:17:44 -0700 (PDT) From: "Vivek Ratan (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-4053) Schedulers need to know when a job has completed In-Reply-To: <156825368.1220328524223.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-4053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638582#action_12638582 ] Vivek Ratan commented on HADOOP-4053: ------------------------------------- bq. Do we need JobStatusChangeEvent(JobInProgress jip, EventType eventType, JobStatus status) ? I also feel we don't need this. Whether the old state or new state matters or not is a decision left to the code that consumes the event change. The creator of this event shouldn't make that decision. I think we should ensure that there is always an old state and new state (so 'null' should not be used). _finalizeJob()_ should also provide an old and new state. If the Capacity Scheduler chooses to ignore the old state, so be it, but some other listener may not. So I'm basically recommending that: * have only one constructor in JobStatusChangeEvent, which accepts both an old state and new state. * Neither of these states should be null. * Can these two states be the same object? I don't see why not. I can't think of a situation where they would be, but forcing the restriction that the states be different seems unnecessary. Seems OK to have _JonInProgress.initTasks()_ do the event notification. _initTasks()_ changes the state of a job, so the event notification should always happen. > Schedulers need to know when a job has completed > ------------------------------------------------ > > Key: HADOOP-4053 > URL: https://issues.apache.org/jira/browse/HADOOP-4053 > Project: Hadoop Core > Issue Type: Improvement > Affects Versions: 0.19.0 > Reporter: Vivek Ratan > Assignee: Amar Kamat > Priority: Blocker > Attachments: HADOOP-4053-v1.patch, HADOOP-4053-v2.patch, HADOOP-4053-v3.1.patch, HADOOP-4053-v3.2.patch, HADOOP-4053-v4.1.patch, HADOOP-4053-v4.patch > > > The JobInProgressListener interface is used by the framework to notify Schedulers of when jobs are added, removed, or updated. Right now, there is no way for the Scheduler to know that a job has completed. jobRemoved() is called when a job is retired, which can happen many hours after a job is actually completed. jobUpdated() is called when a job's priority is changed. We need to notify a listener when a job has completed (either successfully, or has failed or been killed). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.