RockteMQ-AI commented on issue #11385:
URL: https://github.com/apache/rocketmq/issues/11385#issuecomment-6135889898

   **Issue Evaluation**
   
   Category: `type/bug` | Status: **Confirmed**
   
   The reported issue has been verified against the current codebase 
(develop@b764205).
   
   **Root Cause:** In `UpdateBrokerConfigSubCommand.java`, the `-a` option is 
declared with `hasArg=true` (line 53), but the code only checks 
`commandLine.hasOption('a')` (line 96) which tests presence, not value. 
`getOptionValue('a')` is never called, so `-a false` still triggers the 
master+slave fan-out.
   
   **Impact:** When using `-c <cluster>` with `-a false`, the config update is 
silently sent to slave brokers as well, contrary to the user's explicit intent.
   
   **Severity:** Medium — affects role-sensitive configuration updates.
   
   **Note:** PR #11386 already proposes a fix for this issue.
   
   ---
   *Automated evaluation by *


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