Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0C09E200BC3 for ; Fri, 18 Nov 2016 15:50:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0A86E160B16; Fri, 18 Nov 2016 14:50:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 542A4160AFE for ; Fri, 18 Nov 2016 15:49:59 +0100 (CET) Received: (qmail 18714 invoked by uid 500); 18 Nov 2016 14:49:58 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 18702 invoked by uid 99); 18 Nov 2016 14:49:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2016 14:49:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5A04B2C0088 for ; Fri, 18 Nov 2016 14:49:58 +0000 (UTC) Date: Fri, 18 Nov 2016 14:49:58 +0000 (UTC) From: "Paris Carbone (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLINK-2390) Replace iteration timeout with algorithm for detecting termination MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 18 Nov 2016 14:50:00 -0000 [ https://issues.apache.org/jira/browse/FLINK-2390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paris Carbone updated FLINK-2390: --------------------------------- Assignee: (was: Paris Carbone) > Replace iteration timeout with algorithm for detecting termination > ------------------------------------------------------------------ > > Key: FLINK-2390 > URL: https://issues.apache.org/jira/browse/FLINK-2390 > Project: Flink > Issue Type: New Feature > Components: Streaming > Reporter: Gyula Fora > Fix For: 1.0.0 > > > Currently the user can set a timeout which will shut down the iteration source/sink nodes if no new data is received during that time to allow program termination in iterative streaming jobs. > This method is used due to the non-trivial nature of termination in iterative streaming jobs. While termination is not a main concern in long running streaming jobs, this behaviour makes iterative tests non-deterministic and they often fail on travis due to the timeout. Also setting a timeout can cause jobs to terminate prematurely. > I propose to remove iteration timeouts and replace it with the following algorithm for detecting termination: > -We first identify loop edges in the jobgraph (the channels from the iteration sources to the head operators) > -Once the head operators (the ones with loop input) finish with all their non-loop inputs they broadcast a marker to their outputs. > -Each operator will broadcast a marker once it received a marker from all its non-finished inputs > -Iteration sources are terminated when they receive 2 consecutive markers without receiving any record in-between > The idea behind the algorithm is to find out when no more outputs are generated from the operators inside an iteration after their normal inputs are finished. -- This message was sent by Atlassian JIRA (v6.3.4#6332)