From ca0fc13a9db943693817681ddfe0f2c9f2b7c325 Mon Sep 17 00:00:00 2001 From: weiwh1 Date: Wed, 27 Nov 2024 22:06:30 +0800 Subject: [PATCH] Fix(cloud) initial startup failure due to unconfigured metadata node --- be/src/cloud/cloud_meta_mgr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/be/src/cloud/cloud_meta_mgr.cpp b/be/src/cloud/cloud_meta_mgr.cpp index bac9e3c99965a2..2b5f04550cfe2a 100644 --- a/be/src/cloud/cloud_meta_mgr.cpp +++ b/be/src/cloud/cloud_meta_mgr.cpp @@ -226,7 +226,11 @@ class MetaServiceProxy { static size_t num_proxies = 1; static std::atomic index(0); static std::unique_ptr proxies; - + if (config::meta_service_endpoint.empty()) { + return Status::InvalidArgument( + "Meta service endpoint is empty. Please configure manually or wait for " + "heartbeat to obtain."); + } std::call_once( proxies_flag, +[]() { if (config::meta_service_connection_pooled) {