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

IllegalStateException using DeleteTopicsRequest when delete.topic.enable=false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.10.2.0
    • None
    • core
    • None
    • OS X

    Description

      There is no indication as to why the delete request fails. Perhaps an error code?

      This can be reproduced with the following steps:

      1. Start ZK and 1 broker (with default delete.topic.enable=false)
      2. Create a topic test

      bin/kafka-topics.sh --zookeeper localhost:2181 \
        --create --topic test --partition 1 --replication-factor 1
      

      3. Delete topic by sending a DeleteTopicsRequest

      4. An error is returned

      org.apache.kafka.common.errors.DisconnectException
      

      or

      java.lang.IllegalStateException: Attempt to retrieve exception from future which hasn't failed
      	at org.apache.kafka.clients.consumer.internals.RequestFuture.exception(RequestFuture.java:99)
      	at io.confluent.adminclient.KafkaAdminClient.send(KafkaAdminClient.java:195)
      	at io.confluent.adminclient.KafkaAdminClient.deleteTopic(KafkaAdminClient.java:152)
      

      Attachments

        1. delete-topics-request.java
          0.9 kB
          Jon Chiu

        Issue Links

          Activity

            People

              omkreddy Manikumar
              jonchiu Jon Chiu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: