This is an automated email from the ASF dual-hosted git repository. spricoder pushed a commit to branch fix/idea_debug_memory in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit ca48773f949537ff509f186c4b0f402c6c0a7fe2 Author: spricoder <[email protected]> AuthorDate: Fri Mar 7 11:18:45 2025 +0800 Fix IDEA Bedug --- .../src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java index cff92d4d359..9bf9d893dfa 100755 --- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java +++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java @@ -130,8 +130,10 @@ public class IoTDBDescriptor { loadProps(); ServiceLoader<IPropertiesLoader> propertiesLoaderServiceLoader = ServiceLoader.load(IPropertiesLoader.class); + boolean hasProperties = false; for (IPropertiesLoader loader : propertiesLoaderServiceLoader) { LOGGER.info("Will reload properties from {} ", loader.getClass().getName()); + hasProperties = true; Properties properties = loader.loadProperties(); TrimProperties trimProperties = new TrimProperties(); trimProperties.putAll(properties); @@ -150,6 +152,10 @@ public class IoTDBDescriptor { .getConfig() .setCustomizedProperties(loader.getCustomizedProperties()); } + // if there are no properties, we need to init memory config + if (!hasProperties) { + memoryConfig.init(new TrimProperties()); + } } public static IoTDBDescriptor getInstance() {
