Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

统计某个space中所有leader的分布错误 #408

Closed
luoyeguigen001 opened this issue Dec 22, 2021 · 4 comments
Closed

统计某个space中所有leader的分布错误 #408

luoyeguigen001 opened this issue Dec 22, 2021 · 4 comments
Labels
type/question Type: question about the product

Comments

@luoyeguigen001
Copy link

在一个3节点的集群上,通过getSpaceParts获取某个space的parts后,遍历每一个parts,获取其leader
获得的leader显示的结果与通过console显示的不一样
应该是通过client获取的数据有问题,3个storage我停止了一个后,console显示节点上的leader是0,61, 67, 而测试代码一致是42,43,43

@Nicole00
Copy link
Contributor

请问你是通过metaManager来调用getSpaceParts 获取space所有的part信息的么,可以贴一下你的测试代码吗

@luoyeguigen001
Copy link
Author

java的调用是metaManager.getSpaceParts("test"); python的调用是meta_cache.get_part_leader("test"),使用python和java的client调用的都是显示42。43。43。

@Nicole00
Copy link
Contributor

client调用的都是cache里面的数据,你拿到的是meta cache初始化时刻的part信息,当服务更新后cache不会及时被更新的,只有当查到某个cache中不存在的space、tag或者edge时,cache会被更新。

@Sophie-Xie Sophie-Xie added the type/question Type: question about the product label Nov 30, 2022
@Sophie-Xie
Copy link
Contributor

Closed it first, if you have some new info, you can open the issue again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Type: question about the product
Projects
None yet
Development

No branches or pull requests

3 participants