Skip to content

Commit

Permalink
[branch-1.2](hdfs) do not close hdfs fs to avoid FileSystem Closed error
Browse files Browse the repository at this point in the history
  • Loading branch information
morningman committed Jul 27, 2023
1 parent bf95651 commit c18ae48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/io/hdfs_file_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class HdfsFsHandle {
~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;
}
Expand Down

0 comments on commit c18ae48

Please sign in to comment.