This is an automated email from the ASF dual-hosted git repository.
plat1ko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new ab015d6379c [fix](fs) Close local file writer when downloading
finished (#33556)
ab015d6379c is described below
commit ab015d6379cff2e0251ce077e3c2bca238cbb9b2
Author: walter <[email protected]>
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 bd535066106..5ea742c20d5 100644
--- a/be/src/io/fs/hdfs_file_system.cpp
+++ b/be/src/io/fs/hdfs_file_system.cpp
@@ -320,8 +320,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();
}
} // namespace doris::io
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]