KAFKA-19488: Update the docs of "if-not-exists" (#20133)

"the action will only execute" is incorrect, as the admin still sends
the request. The "if-not-exists" flag is actually used to swallow the
exception

Reviewers: TengYao Chi <frankvicky@apache.org>, Nick Guo
<lansg0504@gmail.com>, Ken Huang <s7133700@gmail.com>
This commit is contained in:
Xuan-Zhang Gong 2025-07-10 10:26:06 +08:00 committed by GitHub
parent c625b44d8c
commit 2f6ea81d0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -810,7 +810,7 @@ public abstract class TopicCommand {
ifExistsOpt = parser.accepts("if-exists",
"If set when altering or deleting or describing topics, the action will only execute if the topic exists.");
ifNotExistsOpt = parser.accepts("if-not-exists",
"If set when creating topics, the action will only execute if the topic does not already exist.");
"If set when creating topics, the create request will not fail if the topic already exists, but the request will still be sent.");
excludeInternalTopicOpt = parser.accepts("exclude-internal",
"Exclude internal topics when listing or describing topics. By default, the internal topics are included.");
partitionSizeLimitPerResponseOpt = parser.accepts("partition-size-limit-per-response",