Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F1B318200 for ; Thu, 14 May 2015 00:49:00 +0000 (UTC) Received: (qmail 59059 invoked by uid 500); 14 May 2015 00:49:00 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 59035 invoked by uid 500); 14 May 2015 00:49:00 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 59025 invoked by uid 99); 14 May 2015 00:48:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2015 00:48:59 +0000 Date: Thu, 14 May 2015 00:48:59 +0000 (UTC) From: "Jeremy A. Lucas (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (SPARK-7621) Report KafkaReceiver MessageHandler errors so StreamingListeners can take action 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/SPARK-7621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14542998#comment-14542998 ] Jeremy A. Lucas edited comment on SPARK-7621 at 5/14/15 12:48 AM: ------------------------------------------------------------------ Attached is a small patch to simply call {{reportError}} instead of {{logError}} within the MessageHandler implementations of both the KafkaReceiver and the ReliableKafkaReceiver (note that the patch was generated for *v1.3.1-rc3*, but should be trivial to apply to other releases). was (Author: jerluc): Attached is a small patch to simply call {{reportError}} instead of {{logError}} within the MessageHandler implementations of both the KafkaReceiver and the ReliableKafkaReceiver (note that the patch was generated for {{v1.3.1-rc3}}, but should be trivial to apply to other releases). > Report KafkaReceiver MessageHandler errors so StreamingListeners can take action > -------------------------------------------------------------------------------- > > Key: SPARK-7621 > URL: https://issues.apache.org/jira/browse/SPARK-7621 > Project: Spark > Issue Type: Improvement > Components: Streaming > Affects Versions: 1.3.0, 1.3.1 > Reporter: Jeremy A. Lucas > Fix For: 1.3.1 > > Attachments: SPARK-7621.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > Currently, when a MessageHandler (for any of the Kafka Receiver implementations) encounters an error handling a message, the error is only logged with: > {code:none} > case e: Exception => logError("Error handling message", e) > {code} > It would be _incredibly_ useful to be able to notify any registered StreamingListener of this receiver error (especially since this {{try...catch}} block masks more fatal Kafka connection exceptions). -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org