mridulm commented on PR #37779: URL: https://github.com/apache/spark/pull/37779#issuecomment-1254457075
I am not sure I follow what the code snippet is trying to do. Changing the code to : ``` private def receiveLoop() { Executors.newSingleThreadExecutor(threadFactory).execute(new MessageLoop) } ``` does cause the `uncaughtException` to be invoked - as expected. If we catch the `Throwable` in `receiveLoop` before that, then obviously it is no longer an uncaught exception - and so `MyExceptionHandler.uncaughtException` wont be invoked. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org