This is an automated email from the ASF dual-hosted git repository.

ShannonDing pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new 2ea965aed8 Clarify -s flag usage and add offset reset verification 
(#11555)
2ea965aed8 is described below

commit 2ea965aed892e7781b22cd184eb16beece434649
Author: fangm0137 <[email protected]>
AuthorDate: Mon Nov 23 11:45:08 2026 +0800

    Clarify -s flag usage and add offset reset verification (#11555)
    
    Updated documentation for CLI tools to clarify the usage of the -s flag and 
added a section on verifying consumer offset reset.
---
 docs/en/CLITools.md | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/docs/en/CLITools.md b/docs/en/CLITools.md
index cd944a793f..97bff6243f 100644
--- a/docs/en/CLITools.md
+++ b/docs/en/CLITools.md
@@ -873,7 +873,8 @@ Before introducing the mqadmin management tool, the 
following points need to be
  </tr>
  <tr height=57 style='height:43.0pt'>
   <td height=57 class=xl67 width=87 style='height:43.0pt;width:65pt'>-s</td>
-  <td class=xl68 width=87 style='width:65pt'>Resets the offset corresponding 
to this timestamp in a format see -h, if you want to reset to maxOffset, the 
value is 'now'.</td>
+  <td class=xl68 width=87 style='width:65pt'>Timestamp to look up. Use Unix 
epoch milliseconds, the date format shown by
+  <code>-h</code>, or <code>now</code> to use the current time.</td>
  </tr>
  <tr height=188 style='height:141.0pt'>
   <td height=188 class=xl67 width=87 style='height:141.0pt;width:65pt'>-f</td>
@@ -887,6 +888,21 @@ Before introducing the mqadmin management tool, the 
following points need to be
 
 
 
+### Verify a consumer offset reset
+
+Use a dedicated test consumer group that has already consumed messages from 
the topic.
+Timestamp 0 is the Unix epoch. In this example it precedes the retained 
messages.
+Compare the per-queue consumer offsets before and after the reset.
+
+```sh
+sh bin/mqadmin consumerProgress -n localhost:9876 -g ReplayTestGroup
+sh bin/mqadmin resetOffsetByTime -n localhost:9876 -g ReplayTestGroup -t 
ReplayTestTopic -s 0
+sh bin/mqadmin consumerProgress -n localhost:9876 -g ReplayTestGroup
+```
+
+Check the returned consumer offset for each queue. The earliest retained 
offset can
+be greater than zero. Resetting offsets can cause messages to be processed 
again.
+
 ## 5 Consumer and Consumer Group related command instructions
 
 #### 

Reply via email to