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 4602E115F1 for ; Wed, 18 Jun 2014 06:22:24 +0000 (UTC) Received: (qmail 22563 invoked by uid 500); 18 Jun 2014 06:22:24 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 22524 invoked by uid 500); 18 Jun 2014 06:22:24 -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 22512 invoked by uid 99); 18 Jun 2014 06:22:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2014 06:22:24 +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; Wed, 18 Jun 2014 06:22:22 +0000 Received: (qmail 20399 invoked by uid 99); 18 Jun 2014 06:22:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2014 06:22:02 +0000 Date: Wed, 18 Jun 2014 06:22:02 +0000 (UTC) From: "Srikanth Sundarrajan (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FALCON-369) Refactor workflow builder 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-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14034868#comment-14034868 ] Srikanth Sundarrajan commented on FALCON-369: --------------------------------------------- Thanks. Looks largely fine. Few observations though 1. buildCoords in FeedRetention/Replication & Process are still concerning themselves with extracting tasks from the entity, which we need to move out. Perhaps you can add a TODO to accommodate that in FALCON-126. 2. Some functions like HiveCred/Conf are repeated across concrete classes, perhaps they can be moved to a utility class 3. A doc showing the hierarchy of classes and how they collaborate would be very helpful. Am assuming these changes are fully backward compatible. If there are any aspects that weren't tested with this refactoring, it might be useful to callout or to even create tracking JIRAs. Thanks for taking this massive refactoring exercise. > Refactor workflow builder > ------------------------- > > Key: FALCON-369 > URL: https://issues.apache.org/jira/browse/FALCON-369 > Project: Falcon > Issue Type: Improvement > Reporter: Shwetha G S > Assignee: Shwetha G S > Attachments: FALCON-369-v2.patch, FALCON-369.patch, FalconWorkflowBuilder.png > > > Currently, feed/process workflow builder is a single class which handles all different cases of lifecycles, storage types, workflow engines and building all oozie entities(workflow, coord and bundle). This is not readable and difficult to maintain. This needs some re-factoring. > Approach: > Maintain different builders for > 1. oozie entities - workflow, coord and bundle. > 2. entity types - feed and process > 3. lifecycle - process, retention and replication > 4. workflow engines - oozie, pig and hive -- This message was sent by Atlassian JIRA (v6.2#6252)