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

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 3a74fdb1c898cfdc493177c07e2055fb6cde0ffb
Author: walter <w41te...@gmail.com>
AuthorDate: Fri Apr 12 11:10:15 2024 +0800

    [fix](fs) Close local file writer when downloading finished (#33556)
---
 be/src/io/fs/hdfs_file_system.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/be/src/io/fs/hdfs_file_system.cpp 
b/be/src/io/fs/hdfs_file_system.cpp
index 22b4784ea61..e41671e493b 100644
--- a/be/src/io/fs/hdfs_file_system.cpp
+++ b/be/src/io/fs/hdfs_file_system.cpp
@@ -381,8 +381,7 @@ Status HdfsFileSystem::download_impl(const Path& 
remote_file, const Path& local_
 
         RETURN_IF_ERROR(local_writer->append({read_buf.get(), read_len}));
     }
-
-    return Status::OK();
+    return local_writer->close();
 }
 
 HdfsFileSystemHandle* HdfsFileSystem::get_handle() {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to