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


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/assignor/StickyTaskAssignor.java:
##########
@@ -138,7 +145,8 @@ private static LocalState initialize(final GroupSpec 
groupSpec, final TopologyDe
         final Map<TaskId, ArrayList<StandbyCandidate>> standbyCandidates = new 
HashMap<>();
         for (final String memberId : groupSpec.memberIds()) {
             final MemberAssignmentState memberAssignmentState = 
groupSpec.memberAssignmentState(memberId);
-            final String processId = 
groupSpec.memberMetadata(memberId).processId();
+            final MemberAssignmentMetadata memberMetadata = 
groupSpec.memberMetadata(memberId);
+            final String processId = memberMetadata.processId();

Review Comment:
   Why this rewrite? Seems the code is doing exactly the same as before? Why do 
we want to introduce `MemberAssignmentMetadata memberMetadata` ?



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