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

spricoder pushed a commit to branch feature/memory_auto
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/feature/memory_auto by this 
push:
     new 35a0fa326f0 Add test log
35a0fa326f0 is described below

commit 35a0fa326f09ac60466b5fe3913ad9125464c1ed
Author: spricoder <[email protected]>
AuthorDate: Sat Feb 22 14:28:53 2025 +0800

    Add test log
---
 .../main/java/org/apache/iotdb/commons/conf/CommonDescriptor.java  | 2 --
 .../main/java/org/apache/iotdb/commons/memory/MemoryManager.java   | 7 ++++---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/conf/CommonDescriptor.java
 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/conf/CommonDescriptor.java
index e75c192706d..5810d867a80 100644
--- 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/conf/CommonDescriptor.java
+++ 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/conf/CommonDescriptor.java
@@ -259,12 +259,10 @@ public class CommonDescriptor {
         Boolean.parseBoolean(
             properties.getProperty(
                 "enable_memory_transfer", 
Boolean.toString(config.isEnableMemoryTransfer()))));
-    LOGGER.error("Memory transfer enabled: {}", 
config.isEnableMemoryTransfer());
     config.setMemoryCheckIntervalInS(
         Integer.parseInt(
             properties.getProperty(
                 "memory_check_interval", 
String.valueOf(config.getMemoryCheckIntervalInS()))));
-    LOGGER.error("Memory check interval: {}", 
config.getMemoryCheckIntervalInS());
   }
 
   private void loadPipeProps(TrimProperties properties) {
diff --git 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/memory/MemoryManager.java
 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/memory/MemoryManager.java
index 06819008d9f..e4d9786a260 100644
--- 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/memory/MemoryManager.java
+++ 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/memory/MemoryManager.java
@@ -504,10 +504,11 @@ public class MemoryManager {
         new MemoryManager("GlobalMemoryManager", null, 
Runtime.getRuntime().totalMemory());
 
     static {
+      LOGGER.info(
+          "{} Enable automatic memory transfer with an interval of {} s",
+          ENABLE_MEMORY_TRANSFER,
+          MEMORY_CHECK_INTERVAL_IN_S);
       if (ENABLE_MEMORY_TRANSFER) {
-        LOGGER.info(
-            "Enable automatic memory transfer with an interval of {} s",
-            MEMORY_CHECK_INTERVAL_IN_S);
         MemoryRuntimeAgent.getInstance()
             .registerPeriodicalJob(
                 "GlobalMemoryManager#updateAllocate()",

Reply via email to