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

justinchen pushed a commit to branch ger-fix
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/ger-fix by this push:
     new e3ff6db364f fix
e3ff6db364f is described below

commit e3ff6db364fa8c39176a362877f974e7bcea077c
Author: Caideyipi <[email protected]>
AuthorDate: Thu Jan 22 17:14:54 2026 +0800

    fix
---
 .../java/org/apache/iotdb/db/schemaengine/SchemaEngine.java    | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/SchemaEngine.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/SchemaEngine.java
index 3f59f9edf68..42079dcde26 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/SchemaEngine.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/SchemaEngine.java
@@ -383,8 +383,14 @@ public class SchemaEngine {
                       DataNodeTableCache.getInstance()
                           .getTable(
                               
PathUtils.unQualifyDatabaseName(schemaRegion.getDatabaseFullPath()),
-                              tableEntry.getKey());
-                  return Objects.nonNull(table) ? table.getFieldNum() * 
tableEntry.getValue() : 0;
+                              tableEntry.getKey(),
+                              false);
+                  if (Objects.isNull(table)) {
+                    logger.warn(
+                        "Failed to get table when calculating the time series 
number. Maybe the cluster is restarting or the table is being dropped.");
+                    return 0L;
+                  }
+                  return table.getFieldNum() * tableEntry.getValue();
                 })
             .reduce(0L, Long::sum);
   }

Reply via email to