leaveWhite9088 commented on issue #11519:
URL: https://github.com/apache/rocketmq/issues/11519#issuecomment-6946227923

   Confirmed this behavior in \AdminBrokerProcessor#updateAndCreateTopicList\ 
(lines 681-686). Returning early on the first unchanged topic causes two 
problems in batch workflows like \mqadmin updateTopicList\:
   
   1. Subsequent new or modified topics in \    opicConfigList\ are silently 
skipped from persistence and NameServer registration while returning 
\ResponseCode.SUCCESS\.
   2. Validation checks (topic name, system topic conflict, and \MIXED\ message 
type check) for any remaining topics after the unchanged one are also bypassed, 
masking potential \INVALID_PARAMETER\ errors.
   
   Skipping only the unchanged entry with \continue\ and collecting 
modified/new entries into a separate list after full validation looks like the 
cleanest fix.


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