Wiedbol opened a new pull request, #11566:
URL: https://github.com/apache/rocketmq/pull/11566

   ### Which Issue(s) This PR Fixes
   
   - Fixes #11565
   
   ### Brief Description
   
   `mqadmin sendMessage` currently uses the default topic route when a broker 
is specified without a queue ID. Validate the target options before the 
producer starts. Require `--broker` and `--qid` together for explicit queue 
targeting, reject blank broker names and invalid queue IDs, and clarify the 
requirement in the command help.
   
   ### How Did You Test This Change?
   
   ```shell
   mvn -B -ntp -pl tools -am '-Dtest=SendMessageCommandTest' 
'-Dsurefire.failIfNoSpecifiedTests=false' test
   ```
   
   All 7 tests passed. The tests cover default routing, explicit queue 
targeting, and rejection of invalid arguments before the producer is used.


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