[fix](fs) Close local file writer when downloading via broker fs (#34714)
This commit is contained in:
@ -416,7 +416,7 @@ Status BrokerFileSystem::download_impl(const Path& remote_file, const Path& loca
|
||||
RETURN_IF_ERROR(local_writer->append({read_buf.get(), read_len}));
|
||||
} // file_handler should be closed before calculating checksum
|
||||
|
||||
return Status::OK();
|
||||
return local_writer->close();
|
||||
}
|
||||
|
||||
Status BrokerFileSystem::read_file(const TBrokerFD& fd, size_t offset, size_t bytes_req,
|
||||
|
||||
Reference in New Issue
Block a user