Skip to content

RocketMQ5 Proxy 将消息写入remotingCommand #8144

Answered by panxd98
panxd98 asked this question in Q&A
Discussion options

You must be logged in to vote

原因找到了,msg修改了内容后没有把StoreSize的值设为0,导致转换为byte数组的时候数组最后多了好几个0,然后客户端解析的时候就把第一条之后的都忽略了,在转换为byte数组前加一个这样的代码就可以了:

msg.setStoresize(0);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by panxd98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant