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)

Reply via email to