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

   ### Which Issue(s) This PR Fixes
   
   - Fixes #11519
   
   ### Brief Description
   
   In `AdminBrokerProcessor#updateAndCreateTopicList`, hitting an unchanged 
topic inside the validation loop previously executed `return response;`, 
exiting the entire batch request early and skipping all subsequent topics in 
`topicConfigList`.
   
   This PR skips unchanged topics with `continue` and only updates/registers 
the changed subset (`needUpdateTopicConfigList`) when non-empty.
   
   ### How Did You Test This Change?
   
   - Added unit test 
`AdminBrokerProcessorTest#testUpdateAndCreateTopicListWithUnchangedTopics` 
covering all-unchanged batches and mixed batches (`[unchanged, updated, new]`) 
under both incremental and `enableSingleTopicRegister` modes.
   - Ran `mvn -pl broker -am test -Dtest=AdminBrokerProcessorTest 
-DfailIfNoTests=false`.


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