Skip to content

[ISSUE #11519] Fix early return in updateAndCreateTopicList when batch contains unchanged topics - #11520

Open
apkipa wants to merge 1 commit into
apache:developfrom
apkipa:fix/update-topic-list-early-return
Open

apkipa wants to merge 1 commit into
apache:developfrom
apkipa:fix/update-topic-list-early-return

Conversation

@apkipa

@apkipa apkipa commented Nov 15, 2026

Copy link
Copy Markdown

Which Issue(s) This PR Fixes

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] AdminBrokerProcessor#updateAndCreateTopicList returns early on the first unchanged topic and skips remaining topics

1 participant