[fix](fs) Close local file writer when downloading via broker fs (#34714)

This commit is contained in:
walter
2024-05-11 19:55:12 +08:00
committed by yiguolei
parent cadbbdd2c0
commit a8be47f3ff

View File

@ -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,