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

shuwenwei pushed a commit to branch cacheMetadataIndexNodeOffsetsForQuery
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to 
refs/heads/cacheMetadataIndexNodeOffsetsForQuery by this push:
     new 3c1d02f4acf fix bug
3c1d02f4acf is described below

commit 3c1d02f4acffe6657c09093edc4c09c72d0c844e
Author: shuwenwei <[email protected]>
AuthorDate: Wed Jul 30 11:14:16 2025 +0800

    fix bug
---
 .../queryengine/execution/fragment/DeviceMetadataIndexEntryCache.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/fragment/DeviceMetadataIndexEntryCache.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/fragment/DeviceMetadataIndexEntryCache.java
index aadacad9a5d..e78ae6e0a5f 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/fragment/DeviceMetadataIndexEntryCache.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/fragment/DeviceMetadataIndexEntryCache.java
@@ -143,6 +143,9 @@ public class DeviceMetadataIndexEntryCache {
     boolean memoryReserved = false;
     while (true) {
       if (costOfOneFile * (currentNum + 1) > MAX_CACHED_SIZE) {
+        if (memoryReserved) {
+          
context.getMemoryReservationContext().releaseMemoryCumulatively(costOfOneFile);
+        }
         return false;
       }
       try {

Reply via email to