This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 227daf6ce1e branch-3.0: [fix](cloud) initial startup failure due to
unconfigured metadata node #44696 (#46422)
227daf6ce1e is described below
commit 227daf6ce1e26d82e5b7ce931e586f692a6973ff
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Jan 5 09:15:05 2025 +0800
branch-3.0: [fix](cloud) initial startup failure due to unconfigured
metadata node #44696 (#46422)
Cherry-picked from #44696
Co-authored-by: XLPE <[email protected]>
---
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 747baea780c..a6fe3e8d535 100644
--- a/be/src/cloud/cloud_meta_mgr.cpp
+++ b/be/src/cloud/cloud_meta_mgr.cpp
@@ -226,7 +226,11 @@ private:
static size_t num_proxies = 1;
static std::atomic<size_t> index(0);
static std::unique_ptr<MetaServiceProxy[]> 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) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]