Matthias J. Sax created KAFKA-21724:
---------------------------------------
Summary: kafka-streams-groups.sh: unclear handling of
--delete-internal-topic
Key: KAFKA-21724
URL: https://issues.apache.org/jira/browse/KAFKA-21724
Project: Kafka
Issue Type: Improvement
Components: streams, tools
Reporter: Matthias J. Sax
StreamsGroupCommandOptions#checkDeleteInternalTopicsArgs and
StreamsGroupService#getInternalTopicsToBeDeleted handle --delete-internal-topic
as follows:
# --delete --delete-internal-topic X is rejected with "Option
[delete-internal-topic] takes [reset-offsets] when [execute] is used." The
message should say that --delete and --delete-internal-topic cannot be used
together, and point to --delete-all-internal-topics.
# --delete-internal-topic together with --delete-all-internal-topics is
accepted, and the per-topic option is ignored without any feedback. The two
options should be mutually exclusive.
# --reset-offsets --execute --delete-internal-topic X passes X straight to
deleteTopics, without checking that X is an internal topic of the group:
{code:java}
} else if (opts.options.has(opts.deleteInternalTopicOpt)) {
internalTopics = opts.options.valuesOf(opts.deleteInternalTopicOpt);
}
{code}
--delete-all-internal-topics only deletes the group's repartition and changelog
topics, excluding source topics and names that are not inferred as internal
(retrieveInternalTopics). --delete-internal-topic should apply the same check
and refuse other topics. There should be a --force option to skip the
validation step though.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)