blacktooth commented on code in PR #13446: URL: https://github.com/apache/kafka/pull/13446#discussion_r1244382978
########## connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorCheckpointConnector.java: ########## @@ -150,10 +156,31 @@ private void loadInitialConsumerGroups() List<String> findConsumerGroups() throws InterruptedException, ExecutionException { - return listConsumerGroups().stream() + List<String> filteredGroups = listConsumerGroups().stream() .map(ConsumerGroupListing::groupId) - .filter(this::shouldReplicate) + .filter(this::shouldReplicateByGroupFilter) .collect(Collectors.toList()); + + List<String> checkpointGroups = new LinkedList<>(); + List<String> irrelevantGroups = new LinkedList<>(); + + for (String group : filteredGroups) { + Set<String> consumedTopics = listConsumerGroupOffsets(group).keySet().stream() + .map(TopicPartition::topic) + .filter(this::shouldReplicateByTopicFilter) Review Comment: Is this backward compatible? Can this break use-cases where user is using MM2 to sync the offsets but not necessarily topics? -- 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