wolfstudy commented on issue #5551: Fix docs about reset cursor
URL: https://github.com/apache/pulsar/pull/5551#issuecomment-549252925
 
 
   
   
   
   > $ apache-pulsar-2.4.1/bin/pulsar-admin topics reset-cursor -h
   > 
   > Reset position for subscription to position closest to timestamp or 
messageId
   > Usage: reset-cursor [options] persistent://tenant/namespace/topic
   >   Options:
   >     --messageId, -m
   >        messageId to reset back to (ledgerId:entryId)
   >   * -s, --subscription              < === 
   >        Subscription to reset position on
   >     --time, -t
   >        time in minutes to reset back to (or minutes, hours,days,weeks eg: 
100m,
   >        3h, 2d, 5w)
   
   @jiazhai 
   
   ```
   @Parameter(names = { "-s",
             "--subscription" }, description = "Subscription to reset position 
on", required = true)
   private String subName;
   
   @Parameter(names = { "--time",
            "-t" }, description = "time in minutes to reset back to (or 
minutes, hours,days,weeks eg: 100m, 3h, 2d, 5w)", required = false)
   private String resetTimeStr;
   
    @Parameter(names = { "--messageId",
            "-m" }, description = "messageId to reset back to 
(ledgerId:entryId)", required = false)
   private String resetMessageIdStr;
   ```
   
   Looks like the reason for the code, here is hard code. 

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


With regards,
Apache Git Services

Reply via email to