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:
同名 Topic 在一批里提交 `4→8→4` 时,最后的 `4` 会被跳过,最终返回成功但留下 `8`。能否拒绝批次里的重复 Topic?
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]