You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Matthias J. Sax (JIRA)" <ji...@apache.org> on 2018/10/19 16:47:00 UTC

[jira] [Updated] (KAFKA-7522) As a client of kafka-streams library I want to provide custom error handlers programmatically

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

Matthias J. Sax updated KAFKA-7522:
-----------------------------------
    Labels: needs-kip  (was: )

> As a client of kafka-streams library I want to provide custom error handlers programmatically
> ---------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-7522
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7522
>             Project: Kafka
>          Issue Type: Improvement
>          Components: streams
>    Affects Versions: 1.1.0
>            Reporter: Yevhen Tsyba
>            Priority: Major
>              Labels: needs-kip
>
> According to [KIP-210|https://cwiki.apache.org/confluence/display/KAFKA/KIP-210+-+Provide+for+custom+error+handling++when+Kafka+Streams+fails+to+produce] and [KIP-161|https://cwiki.apache.org/confluence/display/KAFKA/KIP-161%3A+streams+deserialization+exception+handlers], I can define custom error handlers via properties:
> {code:java}
> default.deserialization.exception.handler=org.apache.kafka.streams.errors
> .LogAndContinueExceptionHandler
> default.production.exception.handler=org.apache.kafka.streams.errors
> .ProductionExceptionHandler
> or 
> settings.put(StreamsConfig.DEFAULT_PRODUCTION_EXCEPTION_HANDLER_CLASS_CONFIG,
>             ProductionExceptionHandler.class);
> {code}
> Nevertheless, this solution has some limitations.
> For example, I have a spring-based application, where my custom error handler is a bean. Then I want to add micrometer monitoring to my error handler.
> The existed approach doesn't allow me to do it, because class creates outside of spring context. 
> I think it would be better to have such a possibility to do so.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)