Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-13424

Redundant cleanup operations in TopicChangeHandler or TopicDeletionManager

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8.0
    • None
    • controller
    • None

    Description

      In `TopicDeletionManager.completeDeleteTopic()`, `controllerContext.removeTopic(topic)` will be done after deleting topic znode in `client.deleteTopic(topic, controllerContext.epochZkVersion)`. This will trigger `TopicChangeHandler`, and process `controllerContext.removeTopic` again in `processTopicChange`. 

      It is equivalent to deleting Topic once and executing `controllerContext.removeTopic` twice. Is this the expected situation?

      Attachments

        Activity

          People

            Unassigned Unassigned
            fxbing Xiaobing Fang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: