[
https://issues.apache.org/jira/browse/KAFKA-19263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai resolved KAFKA-19263.
------------------------------------
Fix Version/s: 4.1.0
Resolution: Fixed
> The docs of delete.topic.enable used by Admin#deletetopics is out-of-date
> --------------------------------------------------------------------------
>
> Key: KAFKA-19263
> URL: https://issues.apache.org/jira/browse/KAFKA-19263
> Project: Kafka
> Issue Type: Improvement
> Reporter: Chia-Ping Tsai
> Assignee: Yu Chia Ma
> Priority: Trivial
> Fix For: 4.1.0
>
>
> * If delete.topic.enable is false on the brokers, deleteTopics will mark
> * the topics for deletion, but not actually delete them. The futures will
> * return successfully in this case.
> It is not true as the server return exception now.
> if (!config.deleteTopicEnable) {
> if (apiVersion < 3) {
> throw new InvalidRequestException("Topic deletion is disabled.")
> } else {
> throw new TopicDeletionDisabledException()
> }
> }
--
This message was sent by Atlassian Jira
(v8.20.10#820010)