haohao0103 commented on code in PR #2735:
URL:
https://github.com/apache/incubator-hugegraph/pull/2735#discussion_r2000265893
##########
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:
1、The whitelist IPs are sourced from the peer-list configuration file. The
current solution rejects all Raft-related requests from nodes not in the
peer-list.
2、I understand that the members of the Raft group are a subset of the
peer-list. Please correct me if there are any errors in this understanding.
thanks
--
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]