From 691cdfc77620722464bd3c7441fdea454e0f1cd5 Mon Sep 17 00:00:00 2001 From: zhaohaifei <32253291+zhaohaifei@users.noreply.github.com> Date: Thu, 14 Oct 2021 14:54:53 +0800 Subject: [PATCH] fix bug#3048 --- src/graph/service/GraphService.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/graph/service/GraphService.cpp b/src/graph/service/GraphService.cpp index 4fd914040fc..4d8141ed8c6 100644 --- a/src/graph/service/GraphService.cpp +++ b/src/graph/service/GraphService.cpp @@ -41,13 +41,16 @@ Status GraphService::init(std::shared_ptr ioExecuto bool loadDataOk = metaClient_->waitForMetadReady(3); if (!loadDataOk) { // Resort to retrying in the background - LOG(WARNING) << "Failed to wait for meta service ready synchronously."; + LOG(ERROR) << "Failed to wait for meta service ready synchronously."; + return Status::Error("Failed to wait for meta service ready synchronously."); } sessionManager_ = std::make_unique(metaClient_.get(), hostAddr); auto initSessionMgrStatus = sessionManager_->init(); if (!initSessionMgrStatus.ok()) { - LOG(WARNING) << "Failed to initialize session manager: " << initSessionMgrStatus.toString(); + LOG(ERROR) << "Failed to initialize session manager: " << initSessionMgrStatus.toString(); + return Status::Error("Failed to initialize session manager: %s", + initSessionMgrStatus.toString().c_str()); } queryEngine_ = std::make_unique();