GitHub user panxd98 added a comment to the discussion: RocketMQ5 Proxy 将消息写入remotingCommand
原因找到了,msg修改了内容后没有把StoreSize的值设为0,导致转换为byte数组的时候数组最后多了好几个0,然后客户端解析的时候就把第一条之后的都忽略了,在转换为byte数组前加一个这样的代码就可以了: ``` msg.setStoresize(0); ``` GitHub link: https://github.com/apache/rocketmq/discussions/8144#discussioncomment-9453922 ---- This is an automatically sent email for dev@rocketmq.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@rocketmq.apache.org