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 6B3F1200BDA for ; Mon, 28 Nov 2016 11:52:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6A13C160B06; Mon, 28 Nov 2016 10:52:01 +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 BD66E160B0D for ; Mon, 28 Nov 2016 11:52:00 +0100 (CET) Received: (qmail 2202 invoked by uid 500); 28 Nov 2016 10:52:00 -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 2124 invoked by uid 99); 28 Nov 2016 10:51:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2016 10:51:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C2B6F2C0079 for ; Mon, 28 Nov 2016 10:51:59 +0000 (UTC) Date: Mon, 28 Nov 2016 10:51:59 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-5169) Make consumption of input channels fair MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 28 Nov 2016 10:52:01 -0000 [ https://issues.apache.org/jira/browse/FLINK-5169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15701616#comment-15701616 ] ASF GitHub Bot commented on FLINK-5169: --------------------------------------- Github user StephanEwen commented on a diff in the pull request: https://github.com/apache/flink/pull/2882#discussion_r89757176 --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGate.java --- @@ -495,6 +518,27 @@ void triggerPartitionStateCheck(ResultPartitionID partitionId) { partitionId); } + private void queueChannel(InputChannel channel) { + int availableChannels; + + synchronized (inputChannelsWithData) { + availableChannels = inputChannelsWithData.size(); + + inputChannelsWithData.add(channel); + + if (availableChannels == 0) { + inputChannelsWithData.notify(); --- End diff -- This should be a `notifyAll()`. > Make consumption of input channels fair > --------------------------------------- > > Key: FLINK-5169 > URL: https://issues.apache.org/jira/browse/FLINK-5169 > Project: Flink > Issue Type: Improvement > Components: Network > Reporter: Ufuk Celebi > Assignee: Ufuk Celebi > Priority: Critical > Fix For: 1.2.0, 1.1.4 > > > The input channels on the receiver side of the network stack queue incoming data and notify the input gate about available data. These notifications currently determine the order in which input channels are consumed, which can lead to unfair consumption patterns where faster channels are favored over slower ones. -- This message was sent by Atlassian JIRA (v6.3.4#6332)