showuon opened a new pull request #10367: URL: https://github.com/apache/kafka/pull/10367
jira: https://issues.apache.org/jira/browse/KAFKA-12495 Allow consecutive revoke in incremental cooperative assignor in connector, to fix the issue when new members joined right after revocation round, which causes uneven distribution. What I did are: 1. remove `canRevoke` and `previousRevocation` variable, since we allow consecutive revoking (as lone as `delay == 0`) now 2. compute `currentWorkerAssignmentWithoutDuplication`, to remove duplicated connectors/tasks from `currentWorkerAssignment`, so that we can use it to compute if we need revoke more connectors/tasks in this round 3. When entering `performTaskRevocation`, we passed in the configured assignment, so that we can compute the expected result size (totalSize/workerSize) ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- 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]
