This commit is contained in:
Slideee
2024-11-26 11:08:48 +08:00
committed by GitHub

View File

@@ -182,6 +182,10 @@ public class TopicServiceImpl extends AbstractCommonService implements TopicServ
for (String brokerName : changeToBrokerNameSet(clusterInfo.getClusterAddrTable(),
topicCreateOrUpdateRequest.getClusterNameList(), topicCreateOrUpdateRequest.getBrokerNameList())) {
mqAdminExt.createAndUpdateTopicConfig(clusterInfo.getBrokerAddrTable().get(brokerName).selectBrokerAddr(), topicConfig);
if (topicCreateOrUpdateRequest.isOrder()) {
String orderConf = brokerName + ":" + topicConfig.getWriteQueueNums();
mqAdminExt.createOrUpdateOrderConf(topicConfig.getTopicName(), orderConf, false);
}
}
} catch (Exception err) {
Throwables.throwIfUnchecked(err);