ableegoldman commented on a change in pull request #9487: URL: https://github.com/apache/kafka/pull/9487#discussion_r523322776
########## File path: streams/src/test/java/org/apache/kafka/streams/processor/internals/StreamThreadTest.java ########## @@ -1000,7 +1012,17 @@ public void restore(final Map<TaskId, Task> tasks) { CLIENT_ID, new LogContext(""), new AtomicInteger(), - new AtomicLong(Long.MAX_VALUE) + new AtomicLong(Long.MAX_VALUE), + null, + e -> { + if (e instanceof RuntimeException) { + throw (RuntimeException) e; + } else if (e instanceof Error) { + throw (Error) e; + } else { + throw new RuntimeException("Unexpected checked exception caught in the uncaught exception handler", e); + } Review comment: But TaskMigratedException should never be thrown all the way up to the exception handler. Is that what you're seeing? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org