You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Walker Carlson (Jira)" <ji...@apache.org> on 2021/04/21 01:32:00 UTC

[jira] [Created] (KAFKA-12699) Streams no longer overrides the java default uncaught exception handler

Walker Carlson created KAFKA-12699:
--------------------------------------

             Summary: Streams no longer overrides the java default uncaught exception handler  
                 Key: KAFKA-12699
                 URL: https://issues.apache.org/jira/browse/KAFKA-12699
             Project: Kafka
          Issue Type: Bug
          Components: streams
    Affects Versions: 2.8.0
            Reporter: Walker Carlson


If a user used `Thread.setUncaughtExceptionHanlder()` to set the handler for all threads in the runtime streams would override that with its own handler. However since streams does not use the `Thread` handler anymore it will no longer do so. This can cause problems if the user does something like `System.exit(1)` in the handler. 

 

If using the old handler in streams it will still work as it used to



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