ableegoldman commented on a change in pull request #10411:
URL: https://github.com/apache/kafka/pull/10411#discussion_r604547699



##########
File path: core/src/main/scala/kafka/tools/StreamsResetter.java
##########
@@ -247,14 +247,13 @@ private void parseArguments(final String[] args) {
             .describedAs("file name");
         forceOption = optionParser.accepts("force", "Force the removal of 
members of the consumer group (intended to remove stopped members if a long 
session timeout was used). " +
                 "Make sure to shut down all stream applications when this 
option is specified to avoid unexpected rebalances.");
-        executeOption = optionParser.accepts("execute", "Execute the 
command.");
+
+        // TODO: deprecated in 3.0 can be removed in a future release -- 
https://issues.apache.org/jira/browse/KAFKA-7606
+        executeOption = optionParser.accepts("execute", "This option is 
deprecated and will be removed in a future release; it is not required to 
specify this in order to execute the command");

Review comment:
       Some weird things I noticed: First, the ticket says `--execute` was 
deprecated in 1.1, but it doesn't even exist in 1.0 (or earlier AFAICT but I 
did not check all branches). Did we...add it and deprecate it in the same 
release? Huh?
   
   Also, I just read 
[KIP-171](https://cwiki.apache.org/confluence/display/KAFKA/KIP-171+-+Extend+Consumer+Group+Reset+Offset+for+Stream+Application)
 and it's honestly super confusing. Regarding the deprecation, it says 
`"Current option '–execute' will be marked as "going-to-be-deprecated" and 
replaced by 'dry-run' parameter, until it gets replaced."`
   
   Not sure how to interpret "going-to-be-deprecated" -- does that mean we 
actually did not deprecate this flag in 1.1 but just intend to do so at a later 
time?
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to