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

   ### 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
   
   OS: Ubuntu 22.04
   
   ### RocketMQ version
   
   5.4.0
   
   ### JDK Version
   
   Open Jdk 8
   
   ### Describe the Bug
   
   GetAllTopicConfigResponseHeader‘s field totalTopicNum should not add 
annotation:  @CFNotNull.
   
   ### Steps to Reproduce
   
   When I update the broker cluster with old master(version 5.3.1) and new 
slave(version 5.4.0),the slave can not sync topic from master as for the 
bellowing exception:
   ```
   2026-03-16 16:24:45 ERROR BrokerControllerScheduledThread1 - Failed field 
[totalTopicNum] decoding
   org.apache.rocketmq.remoting.exception.RemotingCommandException: the custom 
field <totalTopicNum> is null
           at 
org.apache.rocketmq.remoting.protocol.RemotingCommand.decodeCommandCustomHeaderDirectly(RemotingCommand.java:307)
           at 
org.apache.rocketmq.remoting.protocol.RemotingCommand.decodeCommandCustomHeader(RemotingCommand.java:275)
           at 
org.apache.rocketmq.remoting.protocol.RemotingCommand.decodeCommandCustomHeader(RemotingCommand.java:267)
           at 
org.apache.rocketmq.broker.out.BrokerOuterAPI.getAllTopicConfig(BrokerOuterAPI.java:802)
           at 
org.apache.rocketmq.broker.slave.SlaveSynchronize.syncTopicConfig(SlaveSynchronize.java:86)
           at 
org.apache.rocketmq.broker.slave.SlaveSynchronize.syncAll(SlaveSynchronize.java:68)
           at 
org.apache.rocketmq.broker.BrokerController$10.run(BrokerController.java:773)
           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:748)
   ```
   
   ### What Did You Expect to See?
   
   No exception.
   
   ### What Did You See Instead?
   
   Exception.
   
   ### 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