Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 16443 invoked from network); 28 Jul 2008 06:59:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jul 2008 06:59:53 -0000 Received: (qmail 73344 invoked by uid 500); 28 Jul 2008 06:59:51 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 73326 invoked by uid 500); 28 Jul 2008 06:59:51 -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 73315 invoked by uid 99); 28 Jul 2008 06:59:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jul 2008 23:59:51 -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; Mon, 28 Jul 2008 06:59:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C7235234C174 for ; Sun, 27 Jul 2008 23:59:31 -0700 (PDT) Message-ID: <543521260.1217228371814.JavaMail.jira@brutus> Date: Sun, 27 Jul 2008 23:59:31 -0700 (PDT) From: "Amar Kamat (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3842) There is a window where the JobTracker is in the RUNNING state (i.e ready to accept jobs) and never executes them. In-Reply-To: <1484225223.1217228251579.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-3842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12617373#action_12617373 ] Amar Kamat commented on HADOOP-3842: ------------------------------------ A simple approach would be to initialize the scheduler early in JobTracker's constructor before making the state {{RUNNING}}. > There is a window where the JobTracker is in the RUNNING state (i.e ready to accept jobs) and never executes them. > ------------------------------------------------------------------------------------------------------------------ > > Key: HADOOP-3842 > URL: https://issues.apache.org/jira/browse/HADOOP-3842 > Project: Hadoop Core > Issue Type: Bug > Components: mapred > Reporter: Amar Kamat > Priority: Blocker > > Prior to HADOOP-3412, job tracker could accept jobs without even offering service (i.e without {{JobTracker.offerService()}} being called). In such a case the job stays in JT's memory and job execution was guaranteed. With HADOOP-3412, {{JobTracker.submitJob()}} adds the job to JT's local structures and passes it to the scheduler. Scheduler gets initialized in {{JobTracker.offerService()}} and hence calling {{JobTracker.submitJob()}} before calling {{JobTracker.offerService()}} is actually a no-op. The job stays in JT's memory but never gets initialized. This is > - backward incompatible > - erroneous as there is a window where the jobtracker is ready to accept jobs, accepts them and never executes them. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.