[DEBUG] [03/13/2024 10:39:27.629] [main] [EventStream(akka://test)] logger log1-TestEventListener started 10:39:27,632 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/13/2024 10:39:27.633] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/13/2024 10:39:27.633] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/13/2024 10:39:27.674] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.252:25520] with UID [-3997609867680942990] [INFO] [03/13/2024 10:39:27.676] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.252:25520] - Starting up, Akka version [2.6.21] ... 10:39:27,678 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.252:25520] with UID [-3997609867680942990] 10:39:27,678 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.252:25520] - Starting up, Akka version [2.6.21] ... 10:39:27,685 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.252:25520] - Registered cluster JMX MBean [akka:type=Cluster] 10:39:27,685 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.252:25520] - Started up successfully 10:39:27,688 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.252:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 10:39:27,688 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.252:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [03/13/2024 10:39:27.683] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.252:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/13/2024 10:39:27.683] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.252:25520] - Started up successfully [INFO] [03/13/2024 10:39:27.687] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.252:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/13/2024 10:39:27.687] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.252:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 10:39:27,839 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:27,863 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:27,863 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:27,869 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 10:39:27,869 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 10:39:27,870 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:39:27,870 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 10:39:27,870 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#1969389459] 10:39:27,883 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 10:39:27,883 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-2048038636] 10:39:27,989 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:27,991 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 10:39:27,991 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:27,991 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:39:27,992 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 10:39:27,992 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:39:27,992 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:39:27,992 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#2063784569] 10:39:28,4 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 10:39:28,4 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#596047013] 10:39:28,109 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:28,109 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:28,109 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:39:28,112 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:39:28,112 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 10:39:28,112 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 10:39:28,112 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#-1829402002] 10:39:28,125 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 10:39:28,126 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#-1796180891] 10:39:28,234 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:28,235 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:28,235 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:28,236 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 10:39:28,236 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=[]] 10:39:28,236 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 10:39:28,237 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:39:28,237 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 10:39:28,238 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#-1798408481] 10:39:28,250 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 10:39:28,250 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#-915419653] 10:39:28,356 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:28,356 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 10:39:28,360 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 10:39:28,360 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:28,360 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:39:28,360 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 10:39:28,360 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 10:39:28,360 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:39:28,360 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 10:39:28,362 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 10:39:28,362 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:39:28,363 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:39:28,363 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:39:28,363 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 10:39:28,363 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#2115027363] 10:39:28,375 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 10:39:28,376 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#1059486625] 10:39:28,376 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#648321391] 10:39:28,482 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:28,483 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:28,483 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:28,484 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 10:39:28,484 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 10:39:28,484 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 10:39:28,485 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#-1634489057] 10:39:28,497 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 10:39:28,497 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#-322319499] 10:39:28,603 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:28,603 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:28,603 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:39:28,603 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 10:39:28,604 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]]] 10:39:28,604 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 10:39:28,604 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:39:28,604 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 10:39:28,604 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#539419369] 10:39:28,617 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 10:39:28,722 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:28,723 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:28,723 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:39:28,725 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:39:28,725 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 10:39:28,725 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 10:39:28,725 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#166948449] 10:39:28,738 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 10:39:28,738 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#-1866610994] 10:39:28,844 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:28,844 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:28,844 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:28,845 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#-185255449] 10:39:28,857 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 10:39:29,21 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 10:39:29,23 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 10:39:29,24 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 10:39:29,24 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 10:39:29,429 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 10:39:29,429 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 10:39:29,429 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 10:39:29,430 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:39:29,430 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 10:39:29,430 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:39:29,431 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:39:29,432 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:39:29,432 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:39:29,432 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:39:29,433 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 10:39:29,433 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#1590149661] 10:39:29,445 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 10:39:29,446 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#265115727] 10:39:29,446 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#-112801920] 10:39:29,447 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-1827222947] 10:39:29,447 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-1591071981] 10:39:29,552 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:29,552 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 10:39:29,556 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 10:39:29,556 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:39:29,556 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 10:39:29,556 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 10:39:29,556 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 10:39:29,557 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 10:39:29,557 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 10:39:29,557 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 10:39:29,557 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 10:39:29,557 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:39:29,557 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 10:39:29,557 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 10:39:29,557 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 10:39:29,557 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:39:29,558 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:39:29,558 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:39:29,558 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:39:29,558 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:39:29,558 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 10:39:29,558 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#596851677] 10:39:29,569 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 10:39:29,570 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#-1288112086] 10:39:29,570 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#265114270] 10:39:29,571 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#1063809143] 10:39:29,572 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-382983357] 10:39:29,677 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:29,678 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:29,678 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:29,678 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#-374837517] 10:39:29,695 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 10:39:29,800 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:29,801 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:29,801 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:29,801 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 10:39:29,801 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 10:39:29,801 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:39:29,801 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:39:29,801 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#-96725649] 10:39:29,813 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 10:39:29,920 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:29,920 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:29,920 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:29,922 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 10:39:29,922 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 10:39:29,923 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#212053282] 10:39:29,941 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 10:39:29,941 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#-1936206652] 10:39:30,47 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:30,47 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 10:39:30,49 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 10:39:30,50 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:30,50 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:39:30,50 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 10:39:30,50 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 10:39:30,50 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:39:30,50 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 10:39:30,50 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:39:30,50 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:39:30,51 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:39:30,51 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:39:30,51 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#945713693] 10:39:30,62 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 10:39:30,63 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#1086460263] 10:39:30,63 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#1970460998] 10:39:30,170 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:30,170 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:30,170 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:30,171 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#-1209314795] 10:39:30,183 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 10:39:30,288 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:30,288 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:30,288 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:30,288 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 10:39:30,288 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 10:39:30,288 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 10:39:30,289 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-1358461748] 10:39:30,301 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 10:39:30,407 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:30,407 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:30,407 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:30,407 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 10:39:30,407 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 10:39:30,407 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 10:39:30,408 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#-899991496] 10:39:30,420 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 10:39:30,525 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:30,526 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:30,526 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:30,526 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 10:39:30,526 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 10:39:30,526 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:39:30,526 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:39:30,527 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:30,527 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:30,527 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 10:39:30,527 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 10:39:30,527 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:39:30,527 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:30,527 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:30,527 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 10:39:30,527 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 10:39:30,527 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 10:39:30,527 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 10:39:30,527 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:39:30,528 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:30,528 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:39:30,528 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 10:39:30,528 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 10:39:30,528 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:39:30,528 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#259921110] 10:39:30,540 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 10:39:30,646 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 10:39:30,646 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 10:39:30,646 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 10:39:30,647 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#1142373317] 10:39:30,659 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 10:39:30,763 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:30,764 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:30,764 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:39:30,764 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 10:39:30,764 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 10:39:30,765 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#531758570] 10:39:30,777 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 10:39:30,781 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:39:30,781 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:39:30,781 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:39:30,781 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:39:30,781 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 10:39:30,781 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 10:39:30,781 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-523120915] 10:39:30,792 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] [INFO] [03/13/2024 10:39:30.793] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 10:39:30,795 AM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/13/2024 10:39:30.796] [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.252:25520) 10:39:30,797 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.252:25520] - Exiting completed 10:39:30,797 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.252:25520] - Shutting down... 10:39:30,797 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.252:25520] - Successfully shut down [INFO] [03/13/2024 10:39:30.797] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.252:25520] - Exiting completed [INFO] [03/13/2024 10:39:30.797] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.252:25520] - Shutting down... [INFO] [03/13/2024 10:39:30.797] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.252:25520] - Successfully shut down [INFO] [akkaDeadLetter][03/13/2024 10:39:30.796] [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#-2135068626] 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'. 10:39:30,804 AM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-2135068626] 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/13/2024 10:39:30.806] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.252:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [03/13/2024 10:39:30.806] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.252:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 10:39:30,809 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 10:39:30,809 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/13/2024 10:39:30.812] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.252:25520/system/remoting-terminator] Remoting shut down. 10:39:30,812 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/13/2024 10:39:30.813] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger