提交 f8eb4d80 编写于 作者: Z zhenghu

[#1568] rocketmq need enhance stability when commitlog broken

增加非空判断,防止空指针异常,导致循环事务 check,增加test覆盖,修复编码格式
原因,消息太长压缩后重复解压
上级 903783f9
......@@ -178,7 +178,7 @@ public class TransactionalMessageBridge {
try {
List<ByteBuffer> messageBufferList = getMessageResult.getMessageBufferList();
for (ByteBuffer bb : messageBufferList) {
MessageExt msgExt = MessageDecoder.decode(bb);
MessageExt msgExt = MessageDecoder.decode(bb, true, false);
if (msgExt != null) {
foundList.add(msgExt);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册