sebastienviale commented on code in PR #17711:
URL: https://github.com/apache/kafka/pull/17711#discussion_r1840651121


##########
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)

Review Comment:
   I added tests for flush and close in ProcessorStateManagerTest
   
   For flushCache I added tests in ProcessingExceptionHandlerIntegrationTest



-- 
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]

Reply via email to