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

delete topic command replaces '+' from the topic name which leads incorrect topic deletion

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.1.0, 1.0.0
    • 2.2.0
    • None
    • None

    Description

      While executing a delete command kafka cli tool is removing the "+" symbol and deleting the incorrect topic. In below case if  "test+topic" is deleted kafka deletes  testtopic.

      [kafka@localhost~]$ /usr/hdp/current/kafka-broker/bin/kafka-topics.sh --create --zookeeper `hostname`:2181 --replication-factor 1 --partitions 1 --topic testtopic
      Created topic "testtopic".
      [kafka@localhost~]$ /usr/hdp/current/kafka-broker/bin/kafka-topics.sh --zookeeper `hostname`:2181 --topic test+topic --delete
      Topic testtopic is marked for deletion.

       delete topic replaces '+' from the topic name  

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            vahid Vahid Hashemian
            Sandeep Nemuri Sandeep Nemuri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment