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

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

commit 0bc2031dae6da12da6688d026ed441222d7a4bae
Author: shuwenwei <[email protected]>
AuthorDate: Fri May 16 10:24:10 2025 +0800

    Datanode cannot start when metaDataCacheEnable=false
    
    (cherry picked from commit 57e89eae90872f4aabf56fc7a0267123c9014bec)
---
 .../src/main/java/org/apache/iotdb/db/conf/DataNodeMemoryConfig.java  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/DataNodeMemoryConfig.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/DataNodeMemoryConfig.java
index 695c25aeddb..efb6758066f 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/DataNodeMemoryConfig.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/DataNodeMemoryConfig.java
@@ -473,9 +473,7 @@ public class DataNodeMemoryConfig {
     // metadata cache is disabled, we need to move all their allocated memory 
to other parts
     if (!isMetaDataCacheEnable()) {
       long sum =
-          bloomFilterCacheMemoryManager.getTotalMemorySizeInBytes()
-              + chunkCacheMemoryManager.getTotalMemorySizeInBytes()
-              + 
timeSeriesMetaDataCacheMemoryManager.getTotalMemorySizeInBytes();
+          bloomFilterCacheMemorySize + chunkCacheMemorySize + 
timeSeriesMetaDataCacheMemorySize;
       bloomFilterCacheMemorySize = 0;
       chunkCacheMemorySize = 0;
       timeSeriesMetaDataCacheMemorySize = 0;

Reply via email to