This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new c559bba2424 [fix](fs) Close local file writer when downloading
finished (#33556) (#34218)
c559bba2424 is described below
commit c559bba24247baf1947d241a7c8b1fd84a282240
Author: walter <[email protected]>
AuthorDate: Sun Apr 28 12:21:59 2024 +0800
[fix](fs) Close local file writer when downloading finished (#33556)
(#34218)
---
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 d3d54527836..f81fd6f08e5 100644
--- a/be/src/io/fs/hdfs_file_system.cpp
+++ b/be/src/io/fs/hdfs_file_system.cpp
@@ -396,8 +396,7 @@ Status HdfsFileSystem::download_impl(const Path&
remote_file, const Path& local_
RETURN_IF_ERROR(local_writer->write_at(write_offset, {read_buf.get(),
read_len}));
write_offset += read_len;
}
-
- return Status::OK();
+ return local_writer->close();
}
Status HdfsFileSystem::direct_download_impl(const Path& remote_file,
std::string* content) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]