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 f2b45624c88 [fix](fs) Close local file writer when downloading via
broker fs (#35249)
f2b45624c88 is described below
commit f2b45624c88f76f55d41f0c60efd17b02f7f9be3
Author: walter <[email protected]>
AuthorDate: Thu May 23 14:39:30 2024 +0800
[fix](fs) Close local file writer when downloading via broker fs (#35249)
Cherry-pick #34714
---
be/src/io/fs/broker_file_system.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/io/fs/broker_file_system.cpp
b/be/src/io/fs/broker_file_system.cpp
index f0d6bc12380..e287aaf9cb4 100644
--- a/be/src/io/fs/broker_file_system.cpp
+++ b/be/src/io/fs/broker_file_system.cpp
@@ -440,7 +440,7 @@ Status BrokerFileSystem::download_impl(const Path&
remote_file, const Path& loca
write_offset += read_len;
} // file_handler should be closed before calculating checksum
- return Status::OK();
+ return local_writer->close();
}
Status BrokerFileSystem::direct_download_impl(const Path& remote_file,
std::string* content) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]