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

   ### Before Creating the Bug Report
   
   - [x] This report describes a bug in Apache RocketMQ.
   - [x] I searched the repository's issues, pull requests, and discussions for 
duplicates.
   
   ### Runtime platform environment
   
   macOS arm64, reproduced with a mocked admin client in a `rocketmq-tools` 
unit test.
   
   ### RocketMQ version
   
   `develop` (5.5.1), commit `28960fd2f795a6903665c3d6c037501059df0760`.
   
   ### JDK Version
   
   Amazon Corretto 8 (1.8.0_514).
   
   ### Describe the Bug
   
   `mqadmin cloneGroupOffset` requires a topic via `-t`. It uses that topic to 
fetch broker routes, then iterates over the source group's offsets for every 
topic. If two topics share a broker, the command can also overwrite the 
destination group's offsets for the unselected topic. Depending on the 
direction of the offset change, the destination group can replay or skip 
messages.
   
   ### Steps to Reproduce
   
   1. Give the source group offsets for `TopicA` and `TopicB` on the same 
broker.
   2. Invoke `mqadmin cloneGroupOffset -s source-group -d target-group -t 
TopicA`.
   3. Inspect which offsets the command updates for `target-group`.
   
   ### What Did You Expect to See?
   
   Only the offsets for `TopicA` are copied to `target-group`.
   
   ### What Did You See Instead?
   
   The command also sends an offset update for the `TopicB` queue.
   
   ### Additional Context
   
   The [Admin Tool reference](https://rocketmq.apache.org/docs/cli-admin-tool/) 
documents `-t` as the topic name. This report was prepared with OpenAI Codex.
   


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