michaeljmarshall commented on a change in pull request #12302:
URL: https://github.com/apache/pulsar/pull/12302#discussion_r727500737



##########
File path: 
pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopics.java
##########
@@ -778,6 +778,14 @@ void run() throws PulsarAdminException {
                 description = "Exclude the reset position, start consume 
messages from the next position.", required = false)
         private boolean excludeResetPosition = false;
 
+        @Parameter(names = { "-ea", "--earliest" },
+                description = "reset back to earliest messageId", required = 
false)
+        private boolean resetToEarliest = false;
+
+        @Parameter(names = { "-la", "--latest" },
+                description = "reset back to latest messageId", required = 
false)
+        private boolean resetToLatest = false;

Review comment:
       Running the `kafka-consumer-groups` command returns the follow as some 
of its options:
   
   ```
   --to-earliest                           Reset offsets to earliest offset.
   --to-latest                             Reset offsets to latest offset.
   ```
   
   It seems like both `--offset` and `--latest`/`--earliest` could be useful. 
What do you think @BewareMyPower?




-- 
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.

To unsubscribe, e-mail: [email protected]

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


Reply via email to