dajac commented on code in PR #19496:
URL: https://github.com/apache/kafka/pull/19496#discussion_r2086237767


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/OffsetMetadataManager.java:
##########
@@ -1006,7 +1006,7 @@ public boolean cleanupExpiredOffsets(String groupId, 
List<CoordinatorRecord> rec
         TimelineHashMap<String, TimelineHashMap<Integer, OffsetAndMetadata>> 
offsetsByTopic =
             offsets.offsetsByGroup.get(groupId);
         if (offsetsByTopic == null) {
-            return true;
+            return !openTransactions.contains(groupId);

Review Comment:
   nit: Should we update the @return in the javadoc to state that we return 
false if the group has pending transactions?



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