mirror of
https://github.com/apache/rocketmq-dashboard.git
synced 2025-09-10 11:40:01 +08:00
[ISSUE #137]Fix the bug of topic create or update when order is true
This commit is contained in:
@@ -124,6 +124,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) {
|
||||
throw Throwables.propagate(err);
|
||||
|
Reference in New Issue
Block a user