You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Manikumar (JIRA)" <ji...@apache.org> on 2017/08/19 16:17:01 UTC

[jira] [Resolved] (KAFKA-2093) Remove logging error if we throw exception

     [ https://issues.apache.org/jira/browse/KAFKA-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manikumar resolved KAFKA-2093.
------------------------------
    Resolution: Won't Fix

Scala producer is deprecated. Pl reopen if you think the issue still exists


> Remove logging error if we throw exception
> ------------------------------------------
>
>                 Key: KAFKA-2093
>                 URL: https://issues.apache.org/jira/browse/KAFKA-2093
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Ivan Balashov
>            Priority: Trivial
>
> On failure, kafka producer logs error AND throws exception. This can pose problems, since client application cannot flexibly control if a particular exception should be logged, and logging becomes all-or-nothing choice for particular logger.
> We must remove logging error if we decide to throw exception.
> Some examples of this:
> kafka.client.ClientUtils$:89
> kafka.producer.SyncProducer:103
> If no one has objections, I can search around for other cases of logging + throwing which should also be fixed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)