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 8873F200D50 for ; Mon, 4 Dec 2017 18:06:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 86E36160BF9; Mon, 4 Dec 2017 17:06:06 +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 CCAD5160BF7 for ; Mon, 4 Dec 2017 18:06:05 +0100 (CET) Received: (qmail 29841 invoked by uid 500); 4 Dec 2017 17:06:05 -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 29832 invoked by uid 99); 4 Dec 2017 17:06:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2017 17:06:05 +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 1FC52C5F36 for ; Mon, 4 Dec 2017 17:06:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.011 X-Spam-Level: X-Spam-Status: No, score=-100.011 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 8eUFQaAvNHsF for ; Mon, 4 Dec 2017 17:06:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 0C1DD5FB87 for ; Mon, 4 Dec 2017 17:06:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3B1B8E25BD for ; Mon, 4 Dec 2017 17:06:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A01DD255CD for ; Mon, 4 Dec 2017 17:06:00 +0000 (UTC) Date: Mon, 4 Dec 2017 17:06:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-7416) Implement Netty receiver outgoing pipeline for credit-based MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 04 Dec 2017 17:06:06 -0000 [ https://issues.apache.org/jira/browse/FLINK-7416?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1627= 7095#comment-16277095 ]=20 ASF GitHub Bot commented on FLINK-7416: --------------------------------------- Github user zhijiangW commented on a diff in the pull request: https://github.com/apache/flink/pull/4533#discussion_r154710910 =20 --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/io/netwo= rk/partition/consumer/RemoteInputChannel.java --- @@ -378,6 +381,11 @@ public void notifyBufferDestroyed() { =09=09// Nothing to do actually. =09} =20 +=09@VisibleForTesting +=09public void increaseCredit(int credit) { --- End diff -- =20 We increase credit here only to confirm the `checkState` of credit corr= ectly during sending `AddCredit` message, not to trigger `notifyCreditAvail= able` by increasing credit. > Implement Netty receiver outgoing pipeline for credit-based > ----------------------------------------------------------- > > Key: FLINK-7416 > URL: https://issues.apache.org/jira/browse/FLINK-7416 > Project: Flink > Issue Type: Sub-task > Components: Network > Reporter: zhijiang > Assignee: zhijiang > Fix For: 1.5.0 > > > This is a part of work for credit-based network flow control. > The related works are : > * We define a new message called {{AddCredit}} to notify the incremental= credit during data shuffle.=20 > * Whenever an {{InputChannel}}=E2=80=99s unannounced credit goes up from = zero, the channel is enqueued in the pipeline. > * Whenever the channel becomes writable, it takes the next {{InputChannel= }} and sends its unannounced credit. The credit is reset to zero after each= sent. > * That way, messages are sent as often as the network has capacity and co= ntain as much credit as available for the channel at that point in time. Ot= herwise, it would only add latency to the announcements and not increase th= roughput. -- This message was sent by Atlassian JIRA (v6.4.14#64029)