You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Matthias J. Sax (JIRA)" <ji...@apache.org> on 2017/10/25 23:33:00 UTC
[jira] [Created] (KAFKA-6125) Avoid third party exception to flow
through streams code base
Matthias J. Sax created KAFKA-6125:
--------------------------------------
Summary: 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
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
(v6.4.14#64029)