RivenSun2 commented on a change in pull request #11340:
URL: https://github.com/apache/kafka/pull/11340#discussion_r719888357



##########
File path: 
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java
##########
@@ -1016,6 +1018,9 @@ public boolean commitOffsetsSync(Map<TopicPartition, 
OffsetAndMetadata> offsets,
             if (future.failed() && !future.isRetriable())
                 throw future.exception();
 
+            if(future.exception() instanceof UnknownTopicOrPartitionException)
+                cleanUpConsumedOffsets(offsets);
+
             timer.sleep(rebalanceConfig.retryBackoffMs);

Review comment:
       I agree, but the check logic should be placed outside the do-while layer




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


Reply via email to