You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Kevin Wu (Jira)" <ji...@apache.org> on 2025/07/11 17:52:00 UTC
[jira] [Created] (KAFKA-19497) Topic replay code does not handle creation and deletion properly if it occurs in the same batch
Kevin Wu created KAFKA-19497:
--------------------------------
Summary: 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: Kevin Wu
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)