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

Matthias J. Sax resolved KAFKA-6125.
------------------------------------
    Resolution: Not A Problem

> Avoid third party exception to flow through streams code base
> -------------------------------------------------------------
>
>                 Key: KAFKA-6125
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6125
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>            Reporter: Matthias J. Sax
>            Priority: Major
>              Labels: streams-exception-handling
>
> Streams uses multiple internal client that might throw fatal exceptions (some 
> should actually never occur, and if, this would indicate a bug).
> We should wrap all calls to the used clients with a {{try-catch}}, and log 
> those exceptions as ERRORs immediately. For exceptions that can only occur 
> due to a bug (e.g., IllegalStateException, IllegalArgumentException, 
> WakeupException, InterruptException) we should ask users in the log message 
> to report this as a bug.
> Last, we rethrow all those exceptions as {{StreamsException}} (to avoid that 
> a standard library exception might be caught by accident somewhere else in 
> our code base).



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

Reply via email to