apkipa commented on code in PR #11520:
URL: https://github.com/apache/rocketmq/pull/11520#discussion_r4615228581


##########
broker/src/main/java/org/apache/rocketmq/broker/processor/AdminBrokerProcessor.java:
##########
@@ -681,18 +682,20 @@ private synchronized RemotingCommand 
updateAndCreateTopicList(ChannelHandlerCont
                 if 
(topicConfig.equals(this.brokerController.getTopicConfigManager().getTopicConfigTable().get(topic)))
 {
                     LOGGER.info("Broker receive request to update or create 
topic={}, but topicConfig has  no changes , so idempotent, caller address={}",
                         topic, 
RemotingHelper.parseChannelRemoteAddr(ctx.channel()));
-                    response.setCode(ResponseCode.SUCCESS);
-                    return response;
+                    continue;

Review Comment:
   Thanks for pointing this out! I have added a check in fa4d731 to reject 
duplicate topic names in the batch, and added corresponding tests covering both 
conflicting (4 -> 8 -> 4) and unchanged duplicate entries.



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