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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.1.0, 1.0.0
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: