showuon commented on a change in pull request #10367:
URL: https://github.com/apache/kafka/pull/10367#discussion_r598078087
##########
File path:
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/IncrementalCooperativeAssignor.java
##########
@@ -192,28 +188,11 @@ private Long ensureLeaderConfig(long maxOffset,
WorkerCoordinator coordinator) {
ConnectorsAndTasks activeAssignments = assignment(memberConfigs);
log.debug("Active assignments: {}", activeAssignments);
- // This means that a previous revocation did not take effect. In this
case, reset
- // appropriately and be ready to re-apply revocation of tasks
Review comment:
After this fix, we can work well under this case: _a previous revocation
did not take effect_, by computing the ceiling of totalTasksWeHave /
totalWorkers in `performTasksRevocation` method, and check if current
assignment in each worker higher than this amount.
--
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]