loicgreffier commented on code in PR #16093:
URL: https://github.com/apache/kafka/pull/16093#discussion_r1687637282
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamTask.java:
##########
@@ -800,6 +804,9 @@ record = null;
record = null;
throw exception;
} catch (final RuntimeException e) {
+ // Do not keep the failed processing exception in the stack trace
+ final Throwable processingException = e instanceof
FailedProcessingException ? e.getCause() : e;
Review Comment:
Having a `catch (FailedProcessingException)` will be now required anyway
since `FailedProcessingException` will now extend `StreamsException`, and we
don't `FailedProcessingException` to be caught by the `catch
(StreamsException)` block from above.
--
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]