GitHub user powertoredstar added a comment to the discussion: Why I can't 
update TopicConfig by DefaultMQAdminExt?

I know how to change the message type by setting the attribute when I create a 
topic now.But I still can't realize why I change the topicConfig is wrong.

```java
DefaultMQAdminExt admin = new DefaultMQAdminExt();
        admin.setNamesrvAddr("10.30.18.78:19876");
        admin.start();
        String clusterName = "DefaultCluster";
        String topicName = "AI-CHAT-TOPIC";
        Map<String, String> map = new HashMap<>();
        admin.deleteTopic(topicName,clusterName);
        map.put("+message.type", MessageType.FIFO.name());
        System.out.println(MessageType.FIFO.name());
        admin.createTopic(clusterName, topicName, 1, map);
```

GitHub link: 
https://github.com/apache/rocketmq/discussions/9647#discussioncomment-14252075

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@rocketmq.apache.org

Reply via email to