Skip to content

Commit

Permalink
fix bug #3048 (#3069)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohaifei authored Oct 14, 2021
1 parent a460c0e commit e1ff44f
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 @@ -41,13 +41,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 e1ff44f

Please sign in to comment.