[ 
https://issues.apache.org/jira/browse/KAFKA-19497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18008772#comment-18008772
 ] 

Kevin Wu commented on KAFKA-19497:
----------------------------------

[~xandercooked] Sorry for the late response. I plan to work on this issue.

> 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: zhu zhe
>            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)

Reply via email to