You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Josep Prat (Jira)" <ji...@apache.org> on 2021/07/30 13:15:00 UTC

[jira] [Commented] (KAFKA-12887) Do not trigger user-customized ExceptionalHandler for RTE

    [ https://issues.apache.org/jira/browse/KAFKA-12887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17390568#comment-17390568 ] 

Josep Prat commented on KAFKA-12887:
------------------------------------

I'll take a stab at this task.

If I understand it correctly, we want to skip the user defined handler and directly re-throw those up the chain, right?

> Do not trigger user-customized ExceptionalHandler for RTE
> ---------------------------------------------------------
>
>                 Key: KAFKA-12887
>                 URL: https://issues.apache.org/jira/browse/KAFKA-12887
>             Project: Kafka
>          Issue Type: Improvement
>          Components: streams
>            Reporter: Guozhang Wang
>            Assignee: Josep Prat
>            Priority: Major
>
> Today in StreamThread we have a try-catch block that captures all {{Throwable e}} and then triggers {{this.streamsUncaughtExceptionHandler.accept(e)}}. However, there are possible RTEs such as IllegalState/IllegalArgument exceptions which are usually caused by bugs, etc. In such cases we should not let users to decide what to do with these exceptions, but should let Streams itself to enforce the decision, e.g. in the IllegalState/IllegalArgument we should fail fast to notify the potential error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)