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

Wei-hao-Li pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/dev/1.3 by this push:
     new 3d535db48a4 Fix fast last empty cache handling in 1.3 (#17743)
3d535db48a4 is described below

commit 3d535db48a4dd4ab9303d32cf7d984b2999c4d84
Author: Caideyipi <[email protected]>
AuthorDate: Mon May 25 09:55:28 2026 +0800

    Fix fast last empty cache handling in 1.3 (#17743)
---
 .../org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java
index 2ae50d36057..f8bd094b69e 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java
@@ -1008,7 +1008,8 @@ public class ClientRPCServiceImpl implements 
IClientRPCServiceWithHandler {
             if (timeValuePair == null) {
               allCached = false;
               break;
-            } else if (timeValuePair.getValue() == null) {
+            } else if (timeValuePair == DeviceLastCache.EMPTY_TIME_VALUE_PAIR
+                || timeValuePair.getValue() == null) {
               // there is no data for this sensor
               if (!canUseNullEntry) {
                 allCached = false;

Reply via email to