From jira-return-11068-archive-asf-public=cust-asf.ponee.io@kafka.apache.org Fri Mar 23 02:37:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 2E377180676 for ; Fri, 23 Mar 2018 02:37:03 +0100 (CET) Received: (qmail 7454 invoked by uid 500); 23 Mar 2018 01:37:02 -0000 Mailing-List: contact jira-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@kafka.apache.org Delivered-To: mailing list jira@kafka.apache.org Received: (qmail 7443 invoked by uid 99); 23 Mar 2018 01:37:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2018 01:37:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C9807C0033 for ; Fri, 23 Mar 2018 01:37:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id orrfeCcaXEAD for ; Fri, 23 Mar 2018 01:37:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D417A5FBA4 for ; Fri, 23 Mar 2018 01:37:00 +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 4E593E0056 for ; Fri, 23 Mar 2018 01:37:00 +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 09C04214DB for ; Fri, 23 Mar 2018 01:37:00 +0000 (UTC) Date: Fri, 23 Mar 2018 01:37:00 +0000 (UTC) From: "Dong Lin (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-6705) producer.send() should be non-blocking MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-6705?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1641= 0672#comment-16410672 ]=20 Dong Lin commented on KAFKA-6705: --------------------------------- Ping [~ijuma] and=C2=A0[~jasong35]=C2=A0for comments. > producer.send() should be non-blocking > -------------------------------------- > > Key: KAFKA-6705 > URL: https://issues.apache.org/jira/browse/KAFKA-6705 > Project: Kafka > Issue Type: Improvement > Reporter: Dong Lin > Assignee: Dong Lin > Priority: Major > > Currently producer.send() may block on metadata or full buffer for up to = max.block.ms. This behavior is well documented but it is a bit sub-optimal.= Since we return a future we should be able to make producer.send() complet= ely non-blocking. One idea is to simply insert the record into a global que= ue shared across all partitions, and let the sender thread fetch record fro= m this queue and send to broker. -- This message was sent by Atlassian JIRA (v7.6.3#76005)