[#1568] rocketmq need enhance stability when commitlog broken 增加非空判断,防止空指针异常,导致循环事务 check,增加test覆盖,修复编码格式

This commit is contained in:
zhenghu
2019-11-05 01:51:09 +08:00
parent 9b9d2bd74c
commit 903783f9b9
@@ -182,7 +182,7 @@ public class TransactionalMessageBridgeTest {
.getMessage(anyString(), anyString(), anyInt(), anyLong(), anyInt(), ArgumentMatchers.nullable(MessageFilter.class)))
.thenReturn(null);
PullResult result = transactionBridge.getHalfMessage(0, 0, 1);
assertThat(result.getPullStatus()).isNull();
assertThat(result).isNull();
}
private GetMessageResult createGetMessageResult(GetMessageStatus status) {