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

AdminUtils.deleteTopic does not work

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.8.1.1
    • Fix Version/s: 0.8.2.0
    • Component/s: None
    • Labels:
      None

      Description

      the AdminUtils:.deleteTopic method is implemented as

          def deleteTopic(zkClient: ZkClient, topic: String) {
              ZkUtils.createPersistentPath(zkClient, ZkUtils.getDeleteTopicPath(topic))
          }
      

      but the DeleteTopicCommand actually does

          zkClient = new ZkClient(zkConnect, 30000, 30000, ZKStringSerializer)
          zkClient.deleteRecursive(ZkUtils.getTopicPath(topic))
      

      so I guess, that the 'createPersistentPath' above should actually be

          def deleteTopic(zkClient: ZkClient, topic: String) {
              ZkUtils.deletePathRecursive(zkClient, ZkUtils.getTopicPath(topic))
          }
      

        Attachments

        1. kafka-thread-dump.log
          41 kB
          Sriharsha Chintalapani
        2. KAFKA-1558.patch
          3 kB
          Sriharsha Chintalapani

          Issue Links

            Activity

              People

              • Assignee:
                sriharsha Sriharsha Chintalapani
                Reporter:
                hgschmie Henning Schmiedehausen
                Reviewer:
                Neha Narkhede
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: