diff --git a/src/handle_join_leave.cxx b/src/handle_join_leave.cxx index cd8097fc..2121f532 100644 --- a/src/handle_join_leave.cxx +++ b/src/handle_join_leave.cxx @@ -153,6 +153,12 @@ ptr raft_server::handle_join_cluster_req(req_msg& req) { return resp; } + ptr cur_config = get_config(); + if (cur_config->get_servers().size() > 1) { + p_in("this server is already in a cluster, ignore the request"); + return resp; + } + // MONSTOR-8244: // Adding server may be called multiple times while previous process is // in progress. It should gracefully handle the new request and should