mjsax commented on code in PR #24195:
URL: https://github.com/apache/kafka/pull/24195#discussion_r4570310566


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/AssignmentRefiner.java:
##########
@@ -104,7 +104,8 @@ static boolean preservesActiveTaskCount(
         Map<String, TasksTuple> targetAssignment,
         Map<String, TasksTuple> refinedAssignment
     ) {
-        return countActiveTasks(targetAssignment) == 
countActiveTasks(refinedAssignment);
+        return targetAssignment == refinedAssignment

Review Comment:
   Small side perf improvement for the happy 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