Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: haifei.zhao <[email protected]>
  • Loading branch information
nebula-bots and zhaohaifei authored Oct 14, 2021
1 parent af85052 commit f197295
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/graph/service/GraphService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,16 @@ Status GraphService::init(std::shared_ptr<folly::IOThreadPoolExecutor> 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<GraphSessionManager>(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<QueryEngine>();
Expand Down

0 comments on commit f197295

Please sign in to comment.