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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]