fangm0137 opened a new issue, #11553:
URL: https://github.com/apache/rocketmq/issues/11553

   ### Search before creation
   
   - [x] I had searched in the 
[issues](https://github.com/apache/rocketmq/issues) and found no similar issues.
   
   
   ### Documentation Related
   
   ### Summary
   
   Clarify the `-s` option for `mqadmin resetOffsetByTime` in 
`docs/en/CLITools.md`.
   
   ### Motivation
   
   The CLI guide does not specify the unit for numeric timestamps and describes 
`-s now` as a reset to `maxOffset`. The command implementation converts `now` 
to `System.currentTimeMillis()` and uses that timestamp for the offset lookup. 
Clarifying this would help users understand what the command requests and how 
to verify its result.
   
   ### Describe the solution you'd like
   
   Document that numeric timestamps are Unix epoch milliseconds and that `now` 
uses the current time. Add a short example showing how to compare per-queue 
consumer offsets with `mqadmin consumerProgress` before and after a reset.
   
   ### Additional context
   
   In a RocketMQ 5.5.0 single-broker test, I stopped a dedicated PushConsumer 
and ran `resetOffsetByTime -s 0 -f true`. The consumer offset for queue 0 
changed from 6 to 0. After restarting the same group, the messages at queue 
offsets 3, 4, and 5 were replayed with the same message IDs, and the consumer 
offset returned to 6.
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!


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