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


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/assignor/BalancedTaskAssignor.java:
##########
@@ -373,29 +447,143 @@ private static Map<String, Set<Integer>> 
toCompactedTaskIds(final Set<TaskId> ta
         return ret;
     }
 
+    /**
+     * The per-member quota on active plus standby tasks: the tasks left over 
the members left, rounded up, where a
+     * member that reaches it leaves with its tasks. The members of a process 
are levelled once the placement is final,
+     * so the member that takes the n-th task of a process with c members 
reaches ceil(n / c).
+     */
+    private static final class TaskQuota {
+        private int totalMembersWithTaskCapacity;
+        private long totalTasks;

Review Comment:
   Why is this a `long`? It seems an `int` would be sufficient?



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