This is an automated email from the ASF dual-hosted git repository.

tanxinyu pushed a commit to branch rc/1.3.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rc/1.3.3 by this push:
     new 1b22c5d35d9 Eventually consistent heartbeat samples #13210 (#13218)
1b22c5d35d9 is described below

commit 1b22c5d35d9c33d470fc2cffc78d6e375682ae6b
Author: Yongzao <[email protected]>
AuthorDate: Mon Aug 19 14:46:13 2024 +0800

    Eventually consistent heartbeat samples #13210 (#13218)
---
 .../apache/iotdb/confignode/manager/load/cache/AbstractLoadCache.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/cache/AbstractLoadCache.java
 
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/cache/AbstractLoadCache.java
index 01958a589c8..42411e462a1 100644
--- 
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/cache/AbstractLoadCache.java
+++ 
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/cache/AbstractLoadCache.java
@@ -56,7 +56,7 @@ public abstract class AbstractLoadCache {
       // And un-sequential heartbeats will be discarded.
       if (getLastSample() == null
           || getLastSample().getSampleLogicalTimestamp()
-              < newHeartbeatSample.getSampleLogicalTimestamp()) {
+              <= newHeartbeatSample.getSampleLogicalTimestamp()) {
         slidingWindow.add(newHeartbeatSample);
       }
 

Reply via email to