vesoft-inc/nebula-java

The storage leader address for the partition of metaManager cache does not look correct

Open

#354 opened on Sep 22, 2021

 (3 comments) (2 reactions) (1 assignee)Java (126 forks)auto 404
good first issuetype/enhancementtype/question

Repository metrics

Stars
 (198 stars)
PR merge metrics
 (PR metrics pending)

Description

对应代码:https://github.com/vesoft-inc/nebula-java/blob/3518faa8444c1f590fba92d7f7c66946ad696852/client/src/main/java/com/vesoft/nebula/client/meta/MetaManager.java#L114

GetPartsAllocReq返回的分区信息无法确定哪个host是leader吧?代码取了第一个,对比 ListHosts 返回的 LeaderParts,第一个并不是 Leader Host。我是参考这里的 https://github.com/vesoft-inc/nebula-common/blob/master/src/common/clients/meta/MetaClient.cpp#L3189

另外 StorageClient 目前只有 scanXXX 接口,有无计划补全剩下的接口?

Contributor guide