You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "blacktooth (via GitHub)" <gi...@apache.org> on 2023/06/27 21:31:11 UTC
[GitHub] [kafka] blacktooth commented on a diff in pull request #13446: KAFKA-14837, KAFKA-14842: Ignore groups that do not have offsets for filtered topics in MirrorCheckpointConnector
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-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org