As a part of migration from one AWS MSK (v2.2.1) to another AWS MSK (v3.5.1), we are planning to make use of mirror maker 2 to replicate topics and topic events. However i was able to setup the replication fine with topics with messages, i had few edge cases where we wanted to replicate the topics with no events (topics with 0 messages) which was necessary for some of our services to mark as healthy. How to get this done? It is essential for us to create the topics with 0 events and this should be utmost done using mirror maker rather doing this manually as it would be tedious for our process.
Mirror maker version : kafka_2.12-3.5.0
I tried a couple of config changes like below in the consumer properties:
source->target.enable.topic.creation = true
I tried these things :
- create a new topic in source cluster with no events –> topic not getting replicated in target cluster.
- publish at least one event in the source topic in source cluster –> topics and event gets pushed to target cluster.