[
https://issues.apache.org/jira/browse/KAFKA-17200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Viktor Somogyi-Vass updated KAFKA-17200:
----------------------------------------
Fix Version/s: 4.0.0
> Enable MM2 to replicate topics ending in "internal" suffix
> ----------------------------------------------------------
>
> Key: KAFKA-17200
> URL: https://issues.apache.org/jira/browse/KAFKA-17200
> Project: Kafka
> Issue Type: Improvement
> Components: mirrormaker
> Affects Versions: 4.0.0
> Reporter: Patrik Márton
> Assignee: Patrik Márton
> Priority: Minor
> Labels: needs-kip
> Fix For: 4.0.0
>
>
> In the current Mirror Maker 2 implementation, topics ending in ".internal" or
> "-internal" cannot be replicated as they are considered connect/mm2 internal
> topics.
> In some cases, users have business topics ending in ".internal" or
> "-internal" that are excluded from the replication for the same reason. This
> is because of two things:
> (1) The ReplicationPolicy interface excludes all topics ending in ".internal"
> or "-internal" from the replication, as they are considered internal connect
> topics:
> {code:java}
> /** Internal topics are never replicated. */
> default boolean isInternalTopic(String topic) {
> boolean isKafkaInternalTopic = topic.startsWith("__") ||
> topic.startsWith(".");
> boolean isDefaultConnectTopic = topic.endsWith("-internal") ||
> topic.endsWith(".internal");
> return isMM2InternalTopic(topic) || isKafkaInternalTopic ||
> isDefaultConnectTopic;
> } {code}
> (2) The DefaultTopicFilter has the following default exclude regular
> expression:
> {code:java}
> ".*[\\-\\.]internal, .*\\.replica, __.*" {code}
> The goal of this ticket is to enable the replication of such business topics,
> while making sure that kafka internal topics are not replicated.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)