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


##########
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:
   With an existing config of 4 queues, a batch requesting 8 then 4 skips the 
second entry and returns success with 8. Could we reject duplicate topic names 
in the batch?



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