C0urante commented on code in PR #11983: URL: https://github.com/apache/kafka/pull/11983#discussion_r863308048
########## connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/IncrementalCooperativeAssignor.java: ########## @@ -336,13 +332,16 @@ ClusterAssignment performTaskAssignment( log.debug("Incremental connector assignments: {}", incrementalConnectorAssignments); log.debug("Incremental task assignments: {}", incrementalTaskAssignments); + Map<String, Collection<String>> revokedConnectors = transformValues(toRevoke, ConnectorsAndTasks::connectors); + Map<String, Collection<ConnectorTaskId>> revokedTasks = transformValues(toRevoke, ConnectorsAndTasks::tasks); + return new ClusterAssignment( incrementalConnectorAssignments, incrementalTaskAssignments, - transformValues(toRevoke, ConnectorsAndTasks::connectors), - transformValues(toRevoke, ConnectorsAndTasks::tasks), - connectorAssignments, - taskAssignments + revokedConnectors, + revokedTasks, + diff(connectorAssignments, revokedConnectors), + diff(taskAssignments, revokedTasks) Review Comment: Yep! There was a bug here. FWIW the same issue is already fixed by https://github.com/apache/kafka/pull/12019. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org