rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

When producer send batch messages, show me an exception. RocketMQ Cluster is dledger mode, What can I do

Open newlipeng opened this issue 6 years ago • 4 comments

org.apache.rocketmq.client.exception.MQBrokerException: CODE: 13 DESC: the message is illegal, maybe msg body or properties length not matched. msg body length limit 128k, msg properties length limit 32k. For more information, please visit the url, http://rocketmq.apache.org/docs/faq/ at org.apache.rocketmq.client.impl.MQClientAPIImpl.processSendResponse(MQClientAPIImpl.java:709) at org.apache.rocketmq.client.impl.MQClientAPIImpl.sendMessageSync(MQClientAPIImpl.java:505) at org.apache.rocketmq.client.impl.MQClientAPIImpl.sendMessage(MQClientAPIImpl.java:487) at org.apache.rocketmq.client.impl.MQClientAPIImpl.sendMessage(MQClientAPIImpl.java:431)

I test at 2m-2s-sync mode, this code works; at dledger conf (cluster mode), it got an exception. code: Message msg = new Message("TestTopic","TagA","order1", ("Hello RocketMQ " +i).getBytes()); msgs.add(msg); SendResult sendResult = producer.send(msgs);

newlipeng avatar Jul 06 '20 03:07 newlipeng

dledger mode do not support batch messages

henrypoter avatar Jul 08 '20 01:07 henrypoter

我也遇到过

zcwease avatar Sep 21 '20 13:09 zcwease

Fixed

RongtongJin avatar Dec 30 '20 07:12 RongtongJin

You could upgrade to version 4.8.0~

vongosling avatar Dec 30 '20 09:12 vongosling