sebastienviale commented on code in PR #17711: URL: https://github.com/apache/kafka/pull/17711#discussion_r1839932320
########## streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorStateManager.java: ########## @@ -538,13 +539,16 @@ public void flush() { } catch (final RuntimeException exception) { if (firstException == null) { // do NOT wrap the error if it is actually caused by Streams itself - if (exception instanceof StreamsException) + // In case of FailedProcessingException Do not keep the failed processing exception in the stack trace + if (exception instanceof FailedProcessingException) + firstException = new StreamsException(exception.getCause()); Review Comment: In case of FailedProcessingException, wrap it into a ProcessorStateException ``` if (exception instanceof FailedProcessingException) { firstException = new ProcessorStateException(exception.getCause()); } ``` -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org