You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "David Arthur (Jira)" <ji...@apache.org> on 2023/10/13 19:25:00 UTC

[jira] [Created] (KAFKA-15605) Topic marked for deletion are incorrectly migrated to KRaft

David Arthur created KAFKA-15605:
------------------------------------

             Summary: Topic marked for deletion are incorrectly migrated to KRaft
                 Key: KAFKA-15605
                 URL: https://issues.apache.org/jira/browse/KAFKA-15605
             Project: Kafka
          Issue Type: Bug
          Components: controller, kraft
    Affects Versions: 3.6.0
            Reporter: David Arthur
             Fix For: 3.6.1


When migrating topics from ZooKeeper, the KRaft controller reads all the topic and partition metadata from ZK directly. This includes topics which have been marked for deletion by the ZK controller. 

Since the client request to delete these topics has already been returned as successful, it would be confusing to the client that the topic still existed. An operator or application would need to issue another topic deletion to remove these topics once the controller had moved to KRaft. If they tried to create a new topic with the same name, they would receive a TOPIC_ALREADY_EXISTS error.

The migration logic should carry over pending topic deletions and resolve them either as part of the migration or shortly after.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)