diff --git a/store/src/main/java/org/apache/rocketmq/store/ha/HAService.java b/store/src/main/java/org/apache/rocketmq/store/ha/HAService.java index bbadd1bcfe8ef991f017eeb23145b204ce4567e4..84fb4217eaaff387c7e759b54d28c3abeda1a2d0 100644 --- a/store/src/main/java/org/apache/rocketmq/store/ha/HAService.java +++ b/store/src/main/java/org/apache/rocketmq/store/ha/HAService.java @@ -374,6 +374,7 @@ public class HAService { } } + lastWriteTimestamp = HAService.this.defaultMessageStore.getSystemClock().now(); return !this.reportOffset.hasRemaining(); } @@ -406,7 +407,6 @@ public class HAService { try { int readSize = this.socketChannel.read(this.byteBufferRead); if (readSize > 0) { - lastWriteTimestamp = HAService.this.defaultMessageStore.getSystemClock().now(); readSizeZeroTimes = 0; boolean result = this.dispatchReadRequest(); if (!result) {