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

haonan pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/0.12 by this push:
     new a322674  [IOTDB-1574][To rel/0.12] [ISSUE-3786] Data file is deleted 
while file handle is not released (#3788)
a322674 is described below

commit a322674b6d0a9cb951719cc59bd1e3f4c5b67719
Author: Xiangwei Wei <[email protected]>
AuthorDate: Thu Aug 19 13:54:50 2021 +0800

    [IOTDB-1574][To rel/0.12] [ISSUE-3786] Data file is deleted while file 
handle is not released (#3788)
---
 RELEASE_NOTES.md                                                        | 2 ++
 .../main/java/org/apache/iotdb/db/query/control/QueryFileManager.java   | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 6659708..29d5a6b 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,3 +1,4 @@
+
 <!--
 
     Licensed to the Apache Software Foundation (ASF) under one
@@ -67,6 +68,7 @@
 * [IOTDB-1546] Optimize the Upgrade Tool rewrite logic to reduce the temp 
memory cost
 * [IOTDB-1552] Only allow equivalent filter for TEXT data type
 * [IOTDB-1556] Abort auto create device when meet exception in setStorageGroup
+* [IOTDB-1574] Deleted file handler leak
 * [ISSUE-3116] Bug when using natural month unit in time interval in group by 
query
 * [ISSUE-3316] Query result with the same time range is inconsistent in group 
by query
 * [ISSUE-3436] Fix query result not right after deleting multiple time 
interval of one timeseries
diff --git 
a/server/src/main/java/org/apache/iotdb/db/query/control/QueryFileManager.java 
b/server/src/main/java/org/apache/iotdb/db/query/control/QueryFileManager.java
index bdcfb06..d75bbe3 100644
--- 
a/server/src/main/java/org/apache/iotdb/db/query/control/QueryFileManager.java
+++ 
b/server/src/main/java/org/apache/iotdb/db/query/control/QueryFileManager.java
@@ -102,7 +102,7 @@ public class QueryFileManager {
         queryId,
         (k, v) -> {
           for (TsFileResource tsFile : v) {
-            
FileReaderManager.getInstance().decreaseFileReaderReference(tsFile, true);
+            
FileReaderManager.getInstance().decreaseFileReaderReference(tsFile, false);
           }
           return null;
         });

Reply via email to