Return-Path: X-Original-To: apmail-kafka-dev-archive@www.apache.org Delivered-To: apmail-kafka-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 3C68D187E1 for ; Fri, 29 Jan 2016 04:25:41 +0000 (UTC) Received: (qmail 94678 invoked by uid 500); 29 Jan 2016 04:25:40 -0000 Delivered-To: apmail-kafka-dev-archive@kafka.apache.org Received: (qmail 94359 invoked by uid 500); 29 Jan 2016 04:25:40 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 94336 invoked by uid 99); 29 Jan 2016 04:25:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2016 04:25:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F01232C1F5C for ; Fri, 29 Jan 2016 04:25:39 +0000 (UTC) Date: Fri, 29 Jan 2016 04:25:39 +0000 (UTC) From: "Guozhang Wang (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KAFKA-2221) Log the entire cause which caused a reconnect in the SimpleConsumer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-2221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guozhang Wang updated KAFKA-2221: --------------------------------- Resolution: Fixed Fix Version/s: 0.9.0.1 Status: Resolved (was: Patch Available) Issue resolved by pull request 138 [https://github.com/apache/kafka/pull/138] > Log the entire cause which caused a reconnect in the SimpleConsumer > ------------------------------------------------------------------- > > Key: KAFKA-2221 > URL: https://issues.apache.org/jira/browse/KAFKA-2221 > Project: Kafka > Issue Type: Improvement > Reporter: jaikiran pai > Assignee: jaikiran pai > Priority: Minor > Fix For: 0.9.0.1 > > Attachments: KAFKA-2221.patch > > > Currently if the SimpleConsumer goes for a reconnect, it logs the exception's message which caused the reconnect. However, in some occasions the message in the exception can be null, thus making it difficult to narrow down the cause for the reconnect. An example of this can be seen in this user mailing list thread http://mail-archives.apache.org/mod_mbox/kafka-users/201505.mbox/%3CCABME_6T%2Bt90%2B-eQUtnu6R99NqRdMpVj3tqa95Pygg8KOQSNppw%40mail.gmail.com%3E > {quote} > kafka.consumer.SimpleConsumer: Reconnect due to socket error: null. > {quote} > It would help narrowing down the problem if the entire exception stacktrace was logged. -- This message was sent by Atlassian JIRA (v6.3.4#6332)