[
https://issues.apache.org/jira/browse/KAFKA-19497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
José Armando García Sancio resolved KAFKA-19497.
------------------------------------------------
Resolution: Fixed
> Topic replay code does not handle creation and deletion properly if it occurs
> in the same batch
> -----------------------------------------------------------------------------------------------
>
> Key: KAFKA-19497
> URL: https://issues.apache.org/jira/browse/KAFKA-19497
> Project: Kafka
> Issue Type: Bug
> Reporter: Kevin Wu
> Assignee: tony tang
> Priority: Major
> Fix For: 4.2.0
>
>
> There is a small logic bug in topic replay. If a topic is created and then
> removed before the TopicsDelta is applied, we end up with the deleted topic
> in {{createdTopics}} on the delta but not in deletedTopicIds. I think we are
> extremely unlikely to see this since MetadataLoader will apply the delta for
> each batch of records it receives. Since it’s impossible to see a TopicRecord
> and RemoveTopicRecord in the same batch, the only way this could surface is
> if MetadataLoader did some buffering.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)