mirror of
https://github.com/apache/rocketmq-dashboard.git
synced 2025-09-10 19:48:29 +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(),
|
for (String brokerName : changeToBrokerNameSet(clusterInfo.getClusterAddrTable(),
|
||||||
topicCreateOrUpdateRequest.getClusterNameList(), topicCreateOrUpdateRequest.getBrokerNameList())) {
|
topicCreateOrUpdateRequest.getClusterNameList(), topicCreateOrUpdateRequest.getBrokerNameList())) {
|
||||||
mqAdminExt.createAndUpdateTopicConfig(clusterInfo.getBrokerAddrTable().get(brokerName).selectBrokerAddr(), topicConfig);
|
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) {
|
} catch (Exception err) {
|
||||||
throw Throwables.propagate(err);
|
throw Throwables.propagate(err);
|
||||||
|
Reference in New Issue
Block a user