zqyangchn opened a new issue, #9499:
URL: https://github.com/apache/rocketmq/issues/9499

   ### Before Creating the Bug Report
   
   - [x] I found a bug, not just asking a question, which should be created in 
[GitHub Discussions](https://github.com/apache/rocketmq/discussions).
   
   - [x] I have searched the [GitHub 
Issues](https://github.com/apache/rocketmq/issues) and [GitHub 
Discussions](https://github.com/apache/rocketmq/discussions)  of this 
repository and believe that this is not a duplicate.
   
   - [x] I have confirmed that this bug belongs to the current repository, not 
other repositories of RocketMQ.
   
   
   ### Runtime platform environment
   
   Ubuntu 22.04.5 LTS
   
   ### RocketMQ version
   
   5.3.3
   
   ### JDK Version
   
   openjdk: jdk8u452-b09
   
   ### Describe the Bug
   
   create topic: sh bin/mqadmin updateTopic -c DefaultCluster -t topicName -a 
+message.type=NORMAL
   slave sync topic failed
   
   
   create topic: sh bin/mqadmin updateTopic -c DefaultCluster -t topicName 
   slave sync topic normal
   
   
   ### Steps to Reproduce
   
   3 nameserver(controller) + one broker master, slave
   
   ### What Did You Expect to See?
   
   SyncTopicConfig normal
   
   ### What Did You See Instead?
   
   2025-06-25 14:06:05 ERROR BrokerControllerScheduledThread1 - SyncTopicConfig 
Exception, broker-01-node-01.xxx.xxx:10911
   java.lang.RuntimeException: only add attribute is supported while creating 
topic. key: essage.type
           at 
org.apache.rocketmq.common.attribute.AttributeUtil.alterCurrentAttributes(AttributeUtil.java:53)
           at 
org.apache.rocketmq.broker.topic.TopicConfigManager.updateSingleTopicConfigWithoutPersist(TopicConfigManager.java:506)
           at 
java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4705)
           at 
org.apache.rocketmq.broker.slave.SlaveSynchronize.syncTopicConfig(SlaveSynchronize.java:102)
           at 
org.apache.rocketmq.broker.slave.SlaveSynchronize.syncAll(SlaveSynchronize.java:66)
           at 
org.apache.rocketmq.broker.controller.ReplicasManager.lambda$handleSlaveSynchronize$2(ReplicasManager.java:357)
           at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
           at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
           at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:750)
   
   ### Additional Context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to