Resetting the last seen epoch of partition

Hi,

we use version 1 of Kafka Mirror Maker to mirror data between systems. I am aware that there is now a version 2, but version 1 is a solid piece of software that does exactly what we need.

We use Kafka Server verison 2.6.x at the moment. However, after updating from Kafka 2.7.x to Kafka 3.3.1 (on the dedicated client / MirrorMaker side - we are still on 2.6.x at the server side), we keep getting the following messages during mirroring from the Mirror Maker process:

2022-12-01 13:57:45,296 INFO  Metadata - [Producer clientId=*****] Resetting the last seen epoch of partition MyTopic-0 to 101 since the associated topicId changed from null to c59OzubzRAO-yhA72TSFEw
2022-12-01 14:02:45,296 INFO  Metadata - [Producer clientId=*****] Resetting the last seen epoch of partition MyTopic-0 to 101 since the associated topicId changed from null to c59OzubzRAO-yhA72TSFEw
2022-12-01 14:07:45,298 INFO  Metadata - [Producer clientId=*****] Resetting the last seen epoch of partition MyTopic-0 to 101 since the associated topicId changed from null to c59OzubzRAO-yhA72TSFEw
2022-12-01 14:12:45,305 INFO  Metadata - [Producer clientId=*****] Resetting the last seen epoch of partition MyTopic-0 to 101 since the associated topicId changed from null to c59OzubzRAO-yhA72TSFEw
2022-12-01 14:17:45,309 INFO  Metadata - [Producer clientId=*****] Resetting the last seen epoch of partition MyTopic-0 to 101 since the associated topicId changed from null to c59OzubzRAO-yhA72TSFEw
2022-12-01 14:27:45,317 INFO  Metadata - [Producer clientId=*****] Resetting the last seen epoch of partition MyTopic-0 to 101 since the associated topicId changed from null to c59OzubzRAO-yhA72TSFEw

MirrorMaker handles hundreds of partitions in our application. The message always appears regularly at 5 (here once at 10) minute intervals - also for other topics and partitions.

Obviously, the message came into the system with a fix to fix KAFKA-12257.

I am now wondering what the message means and whether I can change a configuration to avoid this message. I know that it is only an INFO message, but it still seems to me that I should get to the bottom of the cause.

Can anyone here explain why this message is appearing and what I can do to prevent it. Is there something special about the partitions mentiond?

Thanks in advance,
Franz

These are INFO messages logged in the producer log.

Sample log message as below.

2023-05-05 09:26:29.477 INFO 1 — [ad | producer-1] org.apache.kafka.clients.Metadata : [Producer clientId=producer-1]
Resetting the last seen epoch of partition topic.name-0 to 6 since the associated topicId changed from null to 6zB3byhITIaqmS6SfM3OQQ

When a client first try to consume/produce from/to a topic, it will initialise an object in memory to track the topic metadata, and upon the first metadata response received from the kafka cluster.It will update its state from the default null to the actual topic ID.

If you delete and recreate a topic using the same name, the topic ID will also change and you will see an actual topicId instead of null in the message when the client refreshes its metadata.