You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Manikumar (JIRA)" <ji...@apache.org> on 2018/07/26 17:00:00 UTC

[jira] [Resolved] (KAFKA-4690) IllegalStateException using DeleteTopicsRequest when delete.topic.enable=false

     [ https://issues.apache.org/jira/browse/KAFKA-4690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manikumar resolved KAFKA-4690.
------------------------------
    Resolution: Duplicate

Resolving as duplicate of KAFKA-5975.

> IllegalStateException using DeleteTopicsRequest when delete.topic.enable=false
> ------------------------------------------------------------------------------
>
>                 Key: KAFKA-4690
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4690
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.10.2.0
>         Environment: OS X
>            Reporter: Jon Chiu
>            Assignee: Manikumar
>            Priority: Major
>         Attachments: delete-topics-request.java
>
>
> 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
> {noformat}
> bin/kafka-topics.sh --zookeeper localhost:2181 \
>   --create --topic test --partition 1 --replication-factor 1
> {noformat}
> 3. Delete topic by sending a DeleteTopicsRequest
> 4. An error is returned
> {noformat}
> org.apache.kafka.common.errors.DisconnectException
> {noformat}
> or 
> {noformat}
> 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)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)