showuon commented on a change in pull request #10367:
URL: https://github.com/apache/kafka/pull/10367#discussion_r598488014



##########
File path: 
connect/runtime/src/test/java/org/apache/kafka/connect/runtime/distributed/IncrementalCooperativeAssignorTest.java
##########
@@ -137,6 +145,16 @@ public void testTaskAssignmentWhenWorkerJoins() {
         assertAssignment(2, 8, 0, 0, "worker1");
 
         // Second assignment with a second worker joining and all connectors 
running on previous worker
+        //
+        // assignment after this phase:
+        // W1: assignedConnectors:[], assignedTasks:[],
+        //     revokedConnectors:[C1], revokedTasks:[T1-0, T1-1, T1-2, T1-3]

Review comment:
       change (4): improve test readability by adding the final assignment for 
each phase of rebalance. It'll let other devs/users better understanding how 
the tests go and how the algorithm works.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to