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

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


The following commit(s) were added to refs/heads/master by this push:
     new 32df6dfc2e3 Eventually consistent heartbeat samples #13210
32df6dfc2e3 is described below

commit 32df6dfc2e3ba2979faab974322310ba3c1aaaec
Author: Yongzao <[email protected]>
AuthorDate: Mon Aug 19 12:25:12 2024 +0800

    Eventually consistent heartbeat samples #13210
---
 .../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