jadepeng commented on PR #1975:
URL:
https://github.com/apache/incubator-hugegraph/pull/1975#issuecomment-1282266281
> > 使用rocksdb作为后端存储+开启raft,不能成功启动,registerRpcServices时未导出service,rpcserver未启动
>
> 两个问题, 第一个是现在官方 raft 的配置里, 就正常无法启动么? (似乎这是不符合预期的, 配置好像在 issue 里, 文档可能没更新)
从issue里找的配置
> 第二个描述发生的情况是?
GraphManager.startRpcServer
```
for (Graph graph : this.graphs.values()) {
HugeGraph hugegraph = (HugeGraph) graph;
hugegraph.registerRpcServices(serverConfig, clientConfig);
}
```
这里registerRpcServices时,rockdb not supportsSharedStorage
```
@Override
public void registerRpcServices(RpcServiceConfig4Server serverConfig,
RpcServiceConfig4Client clientConfig) {
/*
* Skip register cache-rpc service if it's non-shared storage,
* because we assume cache of non-shared storage is updated by raft.
*/
if (!this.backendStoreFeatures().supportsSharedStorage()) {
return;
}
```
所以serverConfig未成功addService,exportAll时skip starting RpcServer
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]