You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2023/04/14 08:52:16 UTC

[iotdb] branch AbortException created (now e6aa6c0d8b)

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

jackietien pushed a change to branch AbortException
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at e6aa6c0d8b Fix potential resource leak in Memory Pool

This branch includes the following new commits:

     new e6aa6c0d8b Fix potential resource leak in Memory Pool

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: Fix potential resource leak in Memory Pool

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit e6aa6c0d8ba543acfc4a1e463e460e65597ab839
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Fri Apr 14 16:52:03 2023 +0800

    Fix potential resource leak in Memory Pool
---
 .../apache/iotdb/db/mpp/execution/exchange/SharedTsBlockQueue.java    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/execution/exchange/SharedTsBlockQueue.java b/server/src/main/java/org/apache/iotdb/db/mpp/execution/exchange/SharedTsBlockQueue.java
index ca1a42746b..1be2d7fbd5 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/execution/exchange/SharedTsBlockQueue.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/execution/exchange/SharedTsBlockQueue.java
@@ -321,5 +321,9 @@ public class SharedTsBlockQueue {
               bufferRetainedSizeInBytes);
       bufferRetainedSizeInBytes = 0;
     }
+    localMemoryManager
+        .getQueryPool()
+        .clearMemoryReservationMap(
+            localFragmentInstanceId.getQueryId(), fullFragmentInstanceId, localPlanNodeId);
   }
 }