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 C446B10737 for ; Wed, 26 Mar 2014 06:11:42 +0000 (UTC) Received: (qmail 47107 invoked by uid 500); 26 Mar 2014 06:11:42 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 47078 invoked by uid 500); 26 Mar 2014 06:11:41 -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 46081 invoked by uid 99); 26 Mar 2014 06:11:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2014 06:11:38 +0000 X-ASF-Spam-Status: No, hits=-2000.5 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; Wed, 26 Mar 2014 06:11:37 +0000 Received: (qmail 45730 invoked by uid 99); 26 Mar 2014 06:11:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2014 06:11:15 +0000 Date: Wed, 26 Mar 2014 06:11:15 +0000 (UTC) From: "Shwetha G S (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FALCON-378) Feed status fails with NPE post update when the new coordinator is in PREP state 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-378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13947586#comment-13947586 ] Shwetha G S commented on FALCON-378: ------------------------------------ +1 > Feed status fails with NPE post update when the new coordinator is in PREP state > -------------------------------------------------------------------------------- > > Key: FALCON-378 > URL: https://issues.apache.org/jira/browse/FALCON-378 > Project: Falcon > Issue Type: Bug > Components: oozie > Affects Versions: 0.4 > Reporter: Venkatesh Seetharam > Assignee: Venkatesh Seetharam > Labels: oozie > Attachments: FALCON-378-v1.patch, FALCON-378.patch, oozie-coord-new.tiff, oozie-coords.tiff, test-update-feed-1.xml, test-update-feed-2.xml, test-update-feed.xml > > > An NPE is thrown for status calls post feed update briefly between the new coord creation transitioning from PREP to RUNNING at: > {code} > org.apache.falcon.workflow.engine.OozieWorkflowEngine#getCoordActions > Date iterEnd = (coord.getNextMaterializedTime().before(end) ? coord.getNextMaterializedTime() : end); > {code} > coord.getNextMaterializedTime() is null since the coord is in PREP state as the new coord's effective time is set as now() + 3 min. In reality, this is greater than 3 mins is my observation. > {code} > Feed updated at: > Current time = Tue, 25 Mar 2014 21:54:00 GMT > Old Coord: > Start time = Tue, 25 Mar 2014 00:00:00 GMT > End time = Tue, 25 Mar 2014 22:00:00 GMT > Status = RUNNING > New Coord: > Start time = Tue, 25 Mar 2014 22:00:00 GMT > End time = Wed, 26 Mar 2014 00:00:00 GMT > Status = PREP > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)