This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
new c18ae48d9b [branch-1.2](hdfs) do not close hdfs fs to avoid FileSystem
Closed error
c18ae48d9b is described below
commit c18ae48d9bcd021d39e0f1aa138e827e7c8b801e
Author: morningman <[email protected]>
AuthorDate: Thu Jul 27 16:00:13 2023 +0800
[branch-1.2](hdfs) do not close hdfs fs to avoid FileSystem Closed error
---
be/src/io/hdfs_file_reader.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/be/src/io/hdfs_file_reader.h b/be/src/io/hdfs_file_reader.h
index 95c09d8e01..15093ba347 100644
--- a/be/src/io/hdfs_file_reader.h
+++ b/be/src/io/hdfs_file_reader.h
@@ -53,8 +53,8 @@ public:
~HdfsFsHandle() {
DCHECK(_ref_cnt == 0);
if (hdfs_fs != nullptr) {
- // Even if there is an error, the resources associated with the
hdfsFS will be freed.
- hdfsDisconnect(hdfs_fs);
+ // DO NOT call hdfsDisconnect(), or we will meet "Filesystem
closed"
+ // hdfsDisconnect(hdfs_fs);
}
hdfs_fs = nullptr;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]