Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 528 invoked from network); 26 Oct 2007 16:54:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2007 16:54:14 -0000 Received: (qmail 50086 invoked by uid 500); 26 Oct 2007 16:54:01 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 50051 invoked by uid 500); 26 Oct 2007 16:54:01 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 50042 invoked by uid 99); 26 Oct 2007 16:54:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 09:54:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 16:54:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A779F71425F for ; Fri, 26 Oct 2007 09:53:52 -0700 (PDT) Message-ID: <24724491.1193417632683.JavaMail.jira@brutus> Date: Fri, 26 Oct 2007 09:53:52 -0700 (PDT) From: "Runping Qi (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-2086) ability to add dependencies to a job after construction In-Reply-To: <13728075.1193049890857.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-2086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538017 ] Runping Qi commented on HADOOP-2086: ------------------------------------ Right. WAITING is the only valid state we can add a dependending job. submit() and setState() alter the state variable. Thus they should be synchronized. And they should be package private too (only JobControl uses them). > ability to add dependencies to a job after construction > ------------------------------------------------------- > > Key: HADOOP-2086 > URL: https://issues.apache.org/jira/browse/HADOOP-2086 > Project: Hadoop > Issue Type: Improvement > Components: mapred > Affects Versions: 0.14.2 > Environment: n/a > Reporter: Adrian Woodhead > Fix For: 0.16.0 > > Attachments: job-add-dependencies.patch > > > The current Job API only allows for dependent jobs to be passed in at object construction time. It would be nice if there was an additional constructor which did not take any depending jobs and then an "addDependingJob" method which could be used to add depending jobs to a job at a later point. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.