Return-Path: X-Original-To: apmail-flink-dev-archive@www.apache.org Delivered-To: apmail-flink-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DAAFF17E5C for ; Wed, 9 Sep 2015 16:12:28 +0000 (UTC) Received: (qmail 52420 invoked by uid 500); 9 Sep 2015 16:12:13 -0000 Delivered-To: apmail-flink-dev-archive@flink.apache.org Received: (qmail 52364 invoked by uid 500); 9 Sep 2015 16:12:12 -0000 Mailing-List: contact dev-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 dev@flink.apache.org Received: (qmail 52353 invoked by uid 99); 9 Sep 2015 16:12:12 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Sep 2015 16:12:12 +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 6A42AE1C31 for ; Wed, 9 Sep 2015 16:12:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id G441vDiq9YWg for ; Wed, 9 Sep 2015 16:12:02 +0000 (UTC) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 74D0E207EE for ; Wed, 9 Sep 2015 16:12:02 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) for dev@flink.apache.org with esmtp (envelope-from ) id <1ZZhyU-002Dhn-CU>; Wed, 09 Sep 2015 18:11:54 +0200 Received: from ip5b40315a.dynamic.kabel-deutschland.de ([91.64.49.90] helo=vinci.fritz.box) by inpost2.zedat.fu-berlin.de (Exim 4.85) for dev@flink.apache.org with esmtpsa (envelope-from ) id <1ZZhyU-003jcT-6k>; Wed, 09 Sep 2015 18:11:54 +0200 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: Scheduling in BATCH execution mode? From: Ufuk Celebi In-Reply-To: <55F0591A.7070004@inet.tu-berlin.de> Date: Wed, 9 Sep 2015 18:11:53 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <10D22805-447A-4D45-A042-2BFC744E01EE@apache.org> References: <55F0591A.7070004@inet.tu-berlin.de> To: dev@flink.apache.org X-Mailer: Apple Mail (2.2104) X-Originating-IP: 91.64.49.90 Hey Niklas, this is very much hidden unfortunately. You can find it in = Execution#markFinished. The last partition to be finished triggers the scheduling of the = receivers. =46rom your comments I see that you have dug through the network stack = code quite a bit. If you are interested, we can have a chat about = refactoring things like the scheduling of the receivers to be more = accessible/transparent. =E2=80=93 Ufuk > On 09 Sep 2015, at 18:06, Niklas Semmler = wrote: >=20 > Hello Flink community, >=20 > what is the equivalent of the ScheduleOrUpdateConsumers message in the = pipeline execution mode for the batch execution mode? >=20 > When I run a WordCount in pipeline mode, the scheduling of the = receiving tasks is initiated in the ResultPartition class via the = function notifyPipelinedConsumers*. This leads to a = ScheduleOrUpdateConsumers message being sent to the JobManager and the = JobManager takes care of the rest. >=20 > In the batch mode this does not seem to be the case, as the = notifyPipelinedConsumers function will only work in the pipeline = execution mode: >=20 > > if (partitionType.isPipelined() && !hasNotifiedPipelinedConsumers) >=20 > So then, how is the consumer scheduled, or at least notified of the = consumable partition? >=20 > Cheers, > Niklas >=20 > * = https://github.com/apache/flink/blob/572a45b379ca2231d772db4f115749fa08afc= d10/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partit= ion/ResultPartition.java#L416