315157973 opened a new pull request, #18211: URL: https://github.com/apache/pulsar/pull/18211
### Motivation The current thread pool does not set UncaughtExceptionHandler, so the uncaught exception will disappear directly. Many times these unknown exceptions lead to unexpected bugs, such as locks not being released, etc. We need to print out these unknown exceptions for troubleshooting. ### Modifications In `ExtendedThreadFactory,` set UncaughtExceptionHandler and make it to be the default factory of every thread pool ### Verifying this change Make sure this setting does not affect existing unit tests passing -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
