Why I can't update TopicConfig by DefaultMQAdminExt? #9647
Unanswered
powertoredstar
asked this question in
Q&A
Replies: 2 comments 1 reply
-
the version is 5.3.2 |
Beta Was this translation helpful? Give feedback.
1 reply
-
It appears that the method TopicConfig.setTopicMessageType is assigning the key message.type instead of +message.type to the attributes. The relevant code can be found at TopicConfig.java:L214 and TOPIC_MESSAGE_TYPE_ATTRIBUTE:L41. Inside the broker, when setting the message type for a queue, the broker reads the attributes and needs to prepend a plus sign to them. The relevant code for this is at msgTypeAttrKey:585. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
my operations as follows:
1.create a topic by createTopic method
2.create a topicConfig I want to update
3.get all broker ip
4.update topicConfig on each broker
but I encounted an error on
admin.createAndUpdateTopicConfig(brokerIp, topicConfig)
;why the attribute format is wrong: message.type?
My main purpose is to change the message type after I create a topic manually.
Beta Was this translation helpful? Give feedback.
All reactions