This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch rel/1.2
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/1.2 by this push:
new 8824cae01ab [To rel/1.2] [IOTDB-6104] Remove tmp directory for udf
query completely while query end
8824cae01ab is described below
commit 8824cae01ab1109f381a59ee4c73c2253eeb202c
Author: Jackie Tien <[email protected]>
AuthorDate: Wed Aug 9 09:00:19 2023 +0800
[To rel/1.2] [IOTDB-6104] Remove tmp directory for udf query completely
while query end
---
.../java/org/apache/iotdb/db/service/TemporaryQueryDataFileService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/TemporaryQueryDataFileService.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/TemporaryQueryDataFileService.java
index 0c8418eb170..9c0eef89a8d 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/TemporaryQueryDataFileService.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/TemporaryQueryDataFileService.java
@@ -83,7 +83,7 @@ public class TemporaryQueryDataFileService implements
IService {
}
}
try {
-
FileUtils.cleanDirectory(SystemFileFactory.INSTANCE.getFile(getDirName(queryId)));
+
FileUtils.deleteDirectory(SystemFileFactory.INSTANCE.getFile(getDirName(queryId)));
} catch (IOException e) {
logger.warn(
String.format("Failed to clean dir in method deregister(%s), because
%s", queryId, e));