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

获取存活follower #91

Closed
dehuiliu opened this issue Apr 8, 2019 · 7 comments · Fixed by #92
Closed

获取存活follower #91

dehuiliu opened this issue Apr 8, 2019 · 7 comments · Fixed by #92
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dehuiliu
Copy link

dehuiliu commented Apr 8, 2019

作为leader,想获取存活的follower,通知存活的follower处理数据。

目前存在 com.alipay.sofa.jraft.core.ReplicatorGroupImpl#failureReplicators,但是接口没有提供获取的方法。

@fengjiachun
Copy link
Contributor

你好,我们会考虑一下在 cliService 增加一个 getActivePeers api

@fengjiachun fengjiachun self-assigned this Apr 9, 2019
@fengjiachun fengjiachun added the enhancement New feature or request label Apr 9, 2019
@fengjiachun fengjiachun added this to the 1.2.6 milestone Apr 9, 2019
@fengjiachun
Copy link
Contributor

getAlivePeers 可能更好些?

@dehuiliu
Copy link
Author

为什么在 CliService 中添加 getAlivePeers?

@fengjiachun
Copy link
Contributor

为什么在 CliService 中添加 getAlivePeers?

leader 以外节点甚至 jraft 集群以外都应可以获取到这存活列表

@killme2008
Copy link
Contributor

Node 接口添加,同时在 cliService 提供。

@dehuiliu
Copy link
Author

赞同 killme2008 的提议。

@fengjiachun
Copy link
Contributor

抱歉是我没说明白

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants