izzyharker commented on code in PR #20907:
URL: https://github.com/apache/kafka/pull/20907#discussion_r2550097548


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/ConsumerGroup.java:
##########
@@ -1048,11 +1053,13 @@ void removePartitionEpochs(
             currentPartitionEpoch.compute(topicId, (__, partitionsOrNull) -> {
                 if (partitionsOrNull != null) {
                     assignedPartitions.forEach(partitionId -> {
-                        Integer prevValue = 
partitionsOrNull.remove(partitionId);
+                        Integer prevValue = partitionsOrNull.get(partitionId);
                         if (prevValue != expectedEpoch) {
-                            throw new IllegalStateException(
+                            log.warn(

Review Comment:
   The LogContext gets passed from the GroupMetadataManager so the log messages 
should be prefixed with`[GroupCoordinator id=%d]` already. 



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