Return-Path: X-Original-To: apmail-apex-dev-archive@minotaur.apache.org Delivered-To: apmail-apex-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 AA531188C5 for ; Tue, 22 Dec 2015 03:47:56 +0000 (UTC) Received: (qmail 13834 invoked by uid 500); 22 Dec 2015 03:47:55 -0000 Delivered-To: apmail-apex-dev-archive@apex.apache.org Received: (qmail 13645 invoked by uid 500); 22 Dec 2015 03:47:55 -0000 Mailing-List: contact dev-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list dev@apex.incubator.apache.org Received: (qmail 13550 invoked by uid 99); 22 Dec 2015 03:47:55 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2015 03:47:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A01B6C0B2B for ; Tue, 22 Dec 2015 03:47:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.98 X-Spam-Level: X-Spam-Status: No, score=0.98 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id JW4z6VYWwga0 for ; Tue, 22 Dec 2015 03:47:47 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 52D09439B3 for ; Tue, 22 Dec 2015 03:47:47 +0000 (UTC) Received: (qmail 10094 invoked by uid 99); 22 Dec 2015 03:47:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2015 03:47:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 98B8F2C0AFA for ; Tue, 22 Dec 2015 03:47:46 +0000 (UTC) Date: Tue, 22 Dec 2015 03:47:46 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@apex.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (APEXCORE-60) Iterative processing support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/APEXCORE-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15067504#comment-15067504 ] ASF GitHub Bot commented on APEXCORE-60: ---------------------------------------- Github user gauravgopi123 commented on a diff in the pull request: https://github.com/apache/incubator-apex-core/pull/185#discussion_r48219663 --- Diff: engine/src/main/java/com/datatorrent/stram/plan/physical/PhysicalPlan.java --- @@ -940,17 +942,17 @@ private void updateStreamMappings(PMapping m) PTOperator slidingUnifier = StreamMapping.createSlidingUnifier(sourceOut.logicalStream, this, sourceOM.getValue(Context.OperatorContext.APPLICATION_WINDOW_COUNT), slidingWindowCount); StreamMapping.addInput(slidingUnifier, sourceOut, null); - input = new PTInput(ipm.getKey().getPortName(), ipm.getValue(), oper, null, slidingUnifier.outputs.get(0)); + input = new PTInput(ipm.getKey().getPortName(), ipm.getValue(), oper, null, slidingUnifier.outputs.get(0), ipm.getKey().getValue(LogicalPlan.IS_CONNECTED_TO_DELAY_OPERATOR)); sourceMapping.outputStreams.get(ipm.getValue().getSource()).slidingUnifiers.add(slidingUnifier); } else { - input = new PTInput(ipm.getKey().getPortName(), ipm.getValue(), oper, null, sourceOut); + input = new PTInput(ipm.getKey().getPortName(), ipm.getValue(), oper, null, sourceOut, ipm.getKey().getValue(LogicalPlan.IS_CONNECTED_TO_DELAY_OPERATOR)); } oper.inputs.add(input); } } } - } else { + } else if (sourceMapping != null) { --- End diff -- Why is this additional required? sourceMapping is used in `if` condition too where this check is not being made > Iterative processing support > ---------------------------- > > Key: APEXCORE-60 > URL: https://issues.apache.org/jira/browse/APEXCORE-60 > Project: Apache Apex Core > Issue Type: New Feature > Reporter: David Yan > Assignee: David Yan > > We would like to support iterative processing by introducing cycles in the graph (known as DAG now, but no longer if we support iterative processing). > Initial idea is as follow: > {noformat} > |----| > v | > A -> B -> C -> D > ^ | > |---------| > {noformat} > C has two separate backward streams to A and B. The input ports of A and B that C connects to will have a special attribute on how many window IDs ahead the incoming windows should be treated as, and A and B will be responsible for the initial data for such input ports. > Another idea is to have C advance the window ID on its output ports and have C generate the initial data on its output ports to A and B. -- This message was sent by Atlassian JIRA (v6.3.4#6332)