RongtongJin commented on code in PR #9549:
URL: https://github.com/apache/rocketmq/pull/9549#discussion_r2350406709
##########
broker/src/main/java/org/apache/rocketmq/broker/topic/TopicConfigManager.java:
##########
@@ -310,6 +321,12 @@ public TopicConfig createTopicInSendMessageMethod(final
String topic, final Stri
if (createNew) {
registerBrokerData(topicConfig);
+
+ if
(this.brokerController.getBrokerConfig().isEnableRouteChangeNotification()
+ && this.brokerController.getRouteEventService() != null) {
+ this.brokerController.getRouteEventService().publishEvent(
+ RouteEventType.TOPIC_CHANGE, topicConfig.getTopicName());
+ }
Review Comment:
这些后面类似的重复的代码需要收敛到一起
--
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]