lucasbru commented on code in PR #23638:
URL: https://github.com/apache/kafka/pull/23638#discussion_r4614798429


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsGroupMember.java:
##########
@@ -385,14 +385,15 @@ public StreamsGroupDescribeResponseData.Member 
asStreamsGroupDescribeMember(
                 
.setWarmupTasks(taskIdsFromMap(targetAssignment.warmupTasks()));
         }
 
+        final TasksTupleWithEpochs assignedTasksWithPendingRevocation = 
assignedTasks.merge(tasksPendingRevocation);

Review Comment:
   Could you add a short comment here saying why the pending-revocation tasks 
are included, like `asConsumerGroupDescribeMember` does? Something like: the 
member remains responsible for these tasks until it acknowledges their release.



##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsGroupMember.java:
##########
@@ -385,14 +385,15 @@ public StreamsGroupDescribeResponseData.Member 
asStreamsGroupDescribeMember(
                 
.setWarmupTasks(taskIdsFromMap(targetAssignment.warmupTasks()));
         }
 
+        final TasksTupleWithEpochs assignedTasksWithPendingRevocation = 
assignedTasks.merge(tasksPendingRevocation);

Review Comment:
   Nit: `merge` copies all three task maps even though `tasksPendingRevocation` 
is empty for every member outside `UNREVOKED_TASKS`. Skipping the merge when 
`tasksPendingRevocation.isEmpty()` would avoid that, though it's probably 
negligible on the describe path.



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