[DEBUG] [03/27/2024 03:53:02.635] [main] [EventStream(akka://test)] logger log1-TestEventListener started 03:53:02,636 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/27/2024 03:53:02.636] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/27/2024 03:53:02.636] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/27/2024 03:53:02.677] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.192:25520] with UID [1986052006144292597] 03:53:02,678 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.192:25520] with UID [1986052006144292597] 03:53:02,679 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.192:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/27/2024 03:53:02.678] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.192:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/27/2024 03:53:02.684] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.192:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/27/2024 03:53:02.684] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.192:25520] - Started up successfully [INFO] [03/27/2024 03:53:02.687] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.192:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/27/2024 03:53:02.688] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.192:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 03:53:02,692 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.192:25520] - Registered cluster JMX MBean [akka:type=Cluster] 03:53:02,692 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.192:25520] - Started up successfully 03:53:02,692 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.192:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 03:53:02,692 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.192:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 03:53:02,841 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:02,863 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:02,863 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:02,865 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 03:53:02,865 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 5 in "AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 03:53:02,865 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:53:02,865 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 03:53:02,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#-1999154967] 03:53:02,877 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 03:53:02,877 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-1089894241] 03:53:02,982 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:02,983 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 03:53:02,984 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:02,984 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 03:53:02,984 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 03:53:02,984 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 03:53:02,984 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 03:53:02,984 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#1419668458] 03:53:02,996 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 03:53:02,996 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#-1940319428] 03:53:03,100 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:03,100 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:03,100 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 03:53:03,101 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 03:53:03,101 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 03:53:03,102 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 03:53:03,102 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#-1464120849] 03:53:03,113 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 03:53:03,114 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#-1435848692] 03:53:03,117 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:03,118 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:03,118 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:03,118 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 03:53:03,119 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 03:53:03,119 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 03:53:03,119 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:53:03,119 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 03:53:03,120 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#718355234] 03:53:03,131 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 03:53:03,131 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#728787889] 03:53:03,138 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:03,138 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 03:53:03,140 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 03:53:03,140 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:03,140 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 03:53:03,140 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 03:53:03,140 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 03:53:03,140 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 03:53:03,140 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 03:53:03,142 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 03:53:03,142 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 03:53:03,142 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 03:53:03,142 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:53:03,142 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 03:53:03,142 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#-697944143] 03:53:03,153 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 03:53:03,153 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#574022826] 03:53:03,154 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#986103529] 03:53:03,162 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:03,162 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:03,162 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:03,163 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 03:53:03,163 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 03:53:03,163 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 03:53:03,163 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#-1147703093] 03:53:03,175 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 03:53:03,177 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#-501536674] 03:53:03,182 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:03,182 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:03,182 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 03:53:03,183 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]], my term is 2 03:53:03,183 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 03:53:03,183 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 03:53:03,183 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:53:03,183 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 03:53:03,183 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#-573079619] 03:53:03,195 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 03:53:03,197 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:03,198 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:03,198 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 03:53:03,198 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 03:53:03,198 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 03:53:03,198 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 03:53:03,199 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#-1790848622] 03:53:03,210 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 03:53:03,210 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#466592112] 03:53:03,213 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:03,213 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:03,213 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:03,214 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#-93654593] 03:53:03,225 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 03:53:03,463 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 03:53:03,466 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 03:53:03,467 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 03:53:03,467 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 03:53:03,872 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 03:53:03,873 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 03:53:03,873 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 03:53:03,873 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 03:53:03,873 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 03:53:03,874 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 03:53:03,874 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 03:53:03,874 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 03:53:03,875 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 03:53:03,875 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:53:03,875 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 03:53:03,875 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#631251501] 03:53:03,887 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 03:53:03,888 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#1509775360] 03:53:03,888 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#1606733928] 03:53:03,889 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-1540250829] 03:53:03,889 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#887597482] 03:53:03,994 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:03,994 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 03:53:03,997 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 03:53:03,998 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 03:53:03,998 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 03:53:03,998 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 03:53:03,998 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 03:53:03,998 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 03:53:03,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 03:53:03,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 03:53:03,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 03:53:03,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 03:53:03,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 03:53:03,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 03:53:03,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 03:53:03,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 03:53:04,0 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 03:53:04,0 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 03:53:04,0 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 03:53:04,0 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:53:04,0 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 03:53:04,0 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#171222318] 03:53:04,11 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 03:53:04,12 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#-760966514] 03:53:04,12 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#638018190] 03:53:04,13 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#1562403970] 03:53:04,13 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-216287922] 03:53:04,117 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:04,117 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:04,117 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:04,118 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#-834611378] 03:53:04,129 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 03:53:04,233 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:04,233 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:04,233 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:04,233 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 03:53:04,233 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 03:53:04,233 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:53:04,233 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 03:53:04,233 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#1885118132] 03:53:04,245 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 03:53:04,352 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:04,352 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:04,352 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:04,354 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 03:53:04,354 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 03:53:04,354 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-570612995] 03:53:04,365 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 03:53:04,366 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#1922218477] 03:53:04,470 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:04,470 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 03:53:04,472 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 03:53:04,472 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:04,473 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 03:53:04,473 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 03:53:04,473 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 03:53:04,473 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 03:53:04,473 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 03:53:04,473 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 03:53:04,473 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 03:53:04,474 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:53:04,474 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 03:53:04,474 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#1164455687] 03:53:04,486 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 03:53:04,486 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#1268623543] 03:53:04,487 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#-511247641] 03:53:04,593 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:04,593 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:04,593 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:04,594 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#2099582496] 03:53:04,606 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 03:53:04,711 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:04,711 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:04,711 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:04,711 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 03:53:04,711 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 03:53:04,711 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 03:53:04,711 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-1308352584] 03:53:04,723 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 03:53:04,829 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:04,829 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:04,829 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:04,829 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 03:53:04,829 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 03:53:04,829 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 03:53:04,830 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#1407322681] 03:53:04,841 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 03:53:04,844 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:04,844 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:04,844 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:04,844 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 03:53:04,844 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 03:53:04,845 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:53:04,845 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 03:53:04,845 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:04,845 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:04,845 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5], my term is 2 03:53:04,845 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5]" message is greater than Candidate's term 2 - switching to Follower 03:53:04,845 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 03:53:04,845 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:04,845 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:04,845 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 03:53:04,845 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100]" message is greater than Candidate's term 2 - switching to Follower 03:53:04,845 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100] - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 03:53:04,845 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 03:53:04,846 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 03:53:04,846 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:04,846 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:53:04,846 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 03:53:04,846 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 03:53:04,846 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 03:53:04,846 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-803760210] 03:53:04,857 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 03:53:04,860 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 03:53:04,860 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 03:53:04,860 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 03:53:04,860 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#1476079934] 03:53:04,871 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 03:53:04,874 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:04,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:04,875 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 03:53:04,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 1001 03:53:04,875 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 03:53:04,875 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-750523708] 03:53:04,887 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 03:53:04,990 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:53:04,990 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:53:04,990 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 03:53:04,990 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 03:53:04,990 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 03:53:04,990 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 03:53:04,990 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#1038037547] 03:53:05,2 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] [INFO] [03/27/2024 03:53:05.004] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 03:53:05,4 AM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/27/2024 03:53:05.006] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.192:25520) [INFO] [akkaDeadLetter][03/27/2024 03:53:05.007] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#414855960] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [03/27/2024 03:53:05.008] [test-akka.actor.internal-dispatcher-11] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.192:25520] - Exiting completed [INFO] [03/27/2024 03:53:05.009] [test-akka.actor.internal-dispatcher-11] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.192:25520] - Shutting down... 03:53:05,9 AM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#414855960] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 03:53:05,9 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.192:25520] - Exiting completed 03:53:05,9 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.192:25520] - Shutting down... 03:53:05,9 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.192:25520] - Successfully shut down [INFO] [03/27/2024 03:53:05.009] [test-akka.actor.internal-dispatcher-11] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.192:25520] - Successfully shut down [INFO] [03/27/2024 03:53:05.014] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.192:25520/system/remoting-terminator] Shutting down remote daemon. 03:53:05,15 AM [test-akka.actor.default-dispatcher-10] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [03/27/2024 03:53:05.015] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.192:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 03:53:05,15 AM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 03:53:05,22 AM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [03/27/2024 03:53:05.021] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.192:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [03/27/2024 03:53:05.022] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger