Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 00BA311B7E for ; Fri, 19 Sep 2014 05:01:56 +0000 (UTC) Received: (qmail 13164 invoked by uid 500); 19 Sep 2014 05:01:55 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 13122 invoked by uid 500); 19 Sep 2014 05:01:55 -0000 Mailing-List: contact dev-help@falcon.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.incubator.apache.org Delivered-To: mailing list dev@falcon.incubator.apache.org Received: (qmail 13111 invoked by uid 99); 19 Sep 2014 05:01:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2014 05:01:55 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 19 Sep 2014 05:01:54 +0000 Received: (qmail 12930 invoked by uid 99); 19 Sep 2014 05:01:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2014 05:01:34 +0000 Date: Fri, 19 Sep 2014 05:01:34 +0000 (UTC) From: "Shwetha G S (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FALCON-740) Entity kill job calls OozieClient.kill on bundle coord job ids before calling kill on bundle job id MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FALCON-740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14139997#comment-14139997 ] Shwetha G S commented on FALCON-740: ------------------------------------ I didn't look at the exact code changes done for bundle change. So, didn't realise it will affect us. We set bundle name to some prefix + process name. Since we don't maintain process to bundle mapping, we need to figure out the applicable bundles for a given process. If a process is deleted and then scheduled again, we should be able to filter out the previously scheduled bundles. Oozie sets bundle to killed if user killed the bundle or because its coords are killed(if all its instances are killed). To differentiate between the two, we used to set bundle end time during process delete. But now, we changed the logic to get all bundles and select only the ones whose app path exists. Since we delete the staging path at process delete, we always get only the bundles applicable for the current entity. > Entity kill job calls OozieClient.kill on bundle coord job ids before calling kill on bundle job id > --------------------------------------------------------------------------------------------------- > > Key: FALCON-740 > URL: https://issues.apache.org/jira/browse/FALCON-740 > Project: Falcon > Issue Type: Bug > Components: webapp > Affects Versions: 0.6 > Reporter: Balu Vellanki > Assignee: Balu Vellanki > > When Falcon user makes an entity kill API call, Falcon does the following in org.apache.falcon.workflow.engine.OozieWorkflowEngine.killBundle(String clusterName, BundleJob job) > {code} > //kill all coords > for (CoordinatorJob coord : job.getCoordinators()) { > client.kill(coord.getId()); > LOG.debug("Killed coord {} on cluster {}", coord.getId(), clusterName); > } > //set end time of bundle > client.change(job.getId(), OozieClient.CHANGE_VALUE_ENDTIME + "=" + SchemaHelper.formatDateUTC(new Date())); > LOG.debug("Changed end time of bundle {} on cluster {}", job.getId(), clusterName); > //kill bundle > client.kill(job.getId()); > LOG.debug("Killed bundle {} on cluster {}", job.getId(), clusterName); > {code} > Two questions. > 1. Why should we kill the coordinator jobs before killing the bundle job? OozieClient.kill(bundle_job_id) should kill all the bundle's coord jobs. > 2. Why is the endtime changed for bundle job? https://oozie.apache.org/docs/4.0.1/DG_CommandLineTool.html#Changing_pausetime_of_a_Bundle_Job does not say that endtime can be changed for bundlejob. > I think this code should be updated, please comment if you think I made any wrong assumptions. > Thank you -- This message was sent by Atlassian JIRA (v6.3.4#6332)