zyxxoo commented on code in PR #2735:
URL:
https://github.com/apache/incubator-hugegraph/pull/2735#discussion_r1998313841
##########
hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/raft/RaftEngine.java:
##########
@@ -130,14 +136,35 @@ public boolean init(PDConfig.Raft config) {
/**
* Create a Raft RPC Server for communication between PDs
*/
- private RpcServer createRaftRpcServer(String raftAddr) {
+ private RpcServer createRaftRpcServer(String raftAddr, List<PeerId> peers)
{
Endpoint endpoint = JRaftUtils.getEndPoint(raftAddr);
RpcServer rpcServer =
RaftRpcServerFactory.createRaftRpcServer(endpoint);
+ configureRaftServerIpWhitelist(peers, rpcServer);
Review Comment:
How does the raft group member change? If the raft member changed, the
whiteList ip should been sync changed
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]