[fix](fs) Close local file writer when downloading finished (#33556)

This commit is contained in:
walter
2024-04-12 11:10:15 +08:00
committed by yiguolei
parent 249a9c9875
commit cea02c4fb6

View File

@ -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() {