示例#1
0
            public override Outcome Handle(Org.Neo4j.causalclustering.core.consensus.RaftMessages_Timeout_Election election)
            {
                if (!isQuorum(Ctx.votingMembers().Count, Ctx.heartbeatResponses().Count))
                {
                    StepDownToFollower(Outcome, Ctx);
                    Log.info("Moving to FOLLOWER state after not receiving heartbeat responses in this election timeout " + "period. Heartbeats received: %s", Ctx.heartbeatResponses());
                }

                Outcome.HeartbeatResponses.Clear();
                return(Outcome);
            }