guozhangwang commented on a change in pull request #9700:
URL: https://github.com/apache/kafka/pull/9700#discussion_r538940544



##########
File path: 
streams/src/main/java/org/apache/kafka/streams/processor/internals/RecordCollectorImpl.java
##########
@@ -199,7 +200,9 @@ private void recordSendError(final String topic, final 
Exception exception, fina
         if (isFatalException(exception)) {
             errorMessage += "\nWritten offsets would not be recorded and no 
more records would be sent since this is a fatal error.";
             sendException.set(new StreamsException(errorMessage, exception));
-        } else if (exception instanceof ProducerFencedException || exception 
instanceof OutOfOrderSequenceException) {
+        } else if (exception instanceof ProducerFencedException ||
+                exception instanceof InvalidProducerEpochException ||
+                exception instanceof OutOfOrderSequenceException) {

Review comment:
       I thought about this a bit, and I think both `UnknownProducerId` and 
`OutOfOrderSequence` could be possibly thrown from the caller or directly 
(though in the later case they would be wrapped as KafkaException).
   
   I created two tickets, one for producer and one for streams to improve the 
general picture moving forward.
   
   https://issues.apache.org/jira/browse/KAFKA-10829
   https://issues.apache.org/jira/browse/KAFKA-10830




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


Reply via email to