Kafka MirroMaker 2 not considering topics.exclude configuration to exclude topic from replication

Viewed 23

I have two kafka clusters. one is active and other is standby. There is mirrormaker 2 which replicates the topics from active to standby cluster. mirrormaker configuration I am using is as below:

clusters = active, standby
active.bootstrap.servers = localhost:9092
standby.bootstrap.servers = localhost:9094
active->standby.enabled = true
active->standby.topics = .*

However I want to exclude some of the Kafka streams topics from the replication. To achieve this i have added below configuration to exclude topic testb and topics ending with changelog:

topics.exclude = .*[\-\.]internal, .*\.replica, __.*, testb, .*changelog

In mirror-maker logs I can see that this configuration is correctly picked by MirrorSourceConnector|worker but it still replicates the topics to the standby cluster. As per kafka documentation https://kafka.apache.org/31/documentation.html#georeplication-flow-configure

the topics mentioned in this configuration shall be excluded.

Is there anything that I am doing wrong?

0 Answers
Related