mirror of
https://github.com/apache/rocketmq.git
synced 2026-10-29 17:25:35 +08:00
[#1568] rocketmq need enhance stability when commitlog broken 增加非空判断,防止空指针异常,导致循环事务 check,增加test覆盖,修复编码格式
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user