Description
While working on the fix for KAFKA-15605, I noticed that ZK brokers are unconditionally merging data from UpdateMetadataRequest with their existing MetadataCache. This is not the correct behavior when handling a metadata snapshot from the KRaft controller.
For example, if a topic was deleted in KRaft and not transmitted as part of a delta update (e.g., during a failover) then the ZK brokers will never remove the topic from their cache (until they restart and rebuild their cache).
Attachments
Issue Links
- links to