[fix](fs) Close local file writer when downloading finished (#33556)
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user