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

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


The following commit(s) were added to refs/heads/rc/2.0.3 by this push:
     new e78d8739815 Datanode cannot start when metaDataCacheEnable=false
e78d8739815 is described below

commit e78d87398151c685439633b561c04f98001c40ea
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 8de17422cc6..460a37febf5 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
@@ -465,9 +465,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