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 339C1200D62 for ; Sat, 2 Dec 2017 01:48:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 320A3160C18; Sat, 2 Dec 2017 00:48:05 +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 77FBC160C06 for ; Sat, 2 Dec 2017 01:48:04 +0100 (CET) Received: (qmail 76650 invoked by uid 500); 2 Dec 2017 00:48:03 -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 76637 invoked by uid 99); 2 Dec 2017 00:48:03 -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; Sat, 02 Dec 2017 00:48:03 +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 E3D60C3F25 for ; Sat, 2 Dec 2017 00:48:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.011 X-Spam-Level: X-Spam-Status: No, score=-99.011 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KB_WAM_FROM_NAME_SINGLEWORD=0.2, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id JoW2ZmAuH5Yh for ; Sat, 2 Dec 2017 00:48: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 B43DB5F242 for ; Sat, 2 Dec 2017 00:48: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 56792E0161 for ; Sat, 2 Dec 2017 00:48: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 13CBD255BF for ; Sat, 2 Dec 2017 00:48:00 +0000 (UTC) Date: Sat, 2 Dec 2017 00:48:00 +0000 (UTC) From: "Colin P. McCabe (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-6297) Consumer fetcher should handle UnsupportedVersionException more diligently MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 02 Dec 2017 00:48:05 -0000 [ https://issues.apache.org/jira/browse/KAFKA-6297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16275304#comment-16275304 ] Colin P. McCabe commented on KAFKA-6297: ---------------------------------------- Good find. We need to make sure we have this coverage in the system tests, too... > Consumer fetcher should handle UnsupportedVersionException more diligently > -------------------------------------------------------------------------- > > Key: KAFKA-6297 > URL: https://issues.apache.org/jira/browse/KAFKA-6297 > Project: Kafka > Issue Type: Bug > Components: consumer > Reporter: Guozhang Wang > > Today if the consumer is talking to an older versioned broker that does not support newer fetch versions, it will simply block without printing any warning logs. This is because when {{UnsupportedVersionException}} gets raised inside {{ConsumerNetworkClient}}, the {{Fetcher}}'s handling logic is only logging it and moves on (and hence retries forever): > {code} > @Override > public void onFailure(RuntimeException e) { > log.debug("Fetch request {} to {} failed", request.fetchData(), fetchTarget, e); > } > {code} > We should at least logging {{UnsupportedVersionException}} specifically as WARN or even let the consumer to fail fast and gracefully upon this error. > Side note: There are two system tests in {{streams_broker_compatibility_test.ps}} that are disabled atm -- after this got fixed, we need to re-enable those tests (and also update them accordingly). -- This message was sent by Atlassian JIRA (v6.4.14#64029)