[DEBUG] [03/25/2024 08:37:55.247] [main] [EventStream(akka://test)] logger log1-TestEventListener started 08:37:55,248 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/25/2024 08:37:55.248] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/25/2024 08:37:55.248] [main] [EventStream(akka://test)] Default Loggers started 08:37:55,277 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.141:25520] with UID [8761731374667581437] [INFO] [03/25/2024 08:37:55.277] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.141:25520] with UID [8761731374667581437] 08:37:55,278 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/25/2024 08:37:55.278] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/25/2024 08:37:55.282] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - Registered cluster JMX MBean [akka:type=Cluster] 08:37:55,282 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - Registered cluster JMX MBean [akka:type=Cluster] 08:37:55,282 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - Started up successfully [INFO] [03/25/2024 08:37:55.282] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - Started up successfully 08:37:55,285 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 08:37:55,285 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [03/25/2024 08:37:55.283] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/25/2024 08:37:55.283] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 08:37:55,412 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:55,412 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:55,412 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:55,413 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 08:37:55,413 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 08:37:55,413 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:37:55,413 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 08:37:55,414 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior172#-1786173636] 08:37:55,426 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate173] 08:37:55,427 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer174#518192692] 08:37:55,433 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:55,434 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 08:37:55,434 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:55,434 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:37:55,434 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 08:37:55,434 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:37:55,434 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:37:55,434 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior175#1211767201] 08:37:55,445 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate176] 08:37:55,445 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer177#-390703719] 08:37:55,549 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:55,549 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:55,549 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:37:55,550 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:37:55,550 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 08:37:55,550 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 08:37:55,550 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior178#-733948306] 08:37:55,561 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate179] 08:37:55,562 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer180#1804340282] 08:37:55,665 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:55,665 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:55,665 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:55,666 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 08:37:55,666 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=[]] 08:37:55,667 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:37:55,667 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:37:55,667 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:37:55,667 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior181#740313906] 08:37:55,679 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate182] 08:37:55,679 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer183#-354281719] 08:37:55,682 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:55,682 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 08:37:55,683 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 08:37:55,683 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:55,683 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:37:55,683 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 08:37:55,684 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 08:37:55,684 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:37:55,684 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 08:37:55,685 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 08:37:55,685 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:37:55,686 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:37:55,687 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:37:55,687 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 08:37:55,687 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior184#2110848611] 08:37:55,698 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate185] 08:37:55,699 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer186#-2019601195] 08:37:55,699 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer187#-2090338339] 08:37:55,702 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:55,702 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:55,702 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:55,703 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 08:37:55,703 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 08:37:55,703 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 08:37:55,703 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior188#470567384] 08:37:55,714 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate189] 08:37:55,715 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer190#-387836478] 08:37:55,717 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:55,717 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:55,717 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:37:55,717 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 08:37:55,717 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]]] 08:37:55,717 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:37:55,718 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:37:55,718 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:37:55,718 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#1283267552] 08:37:55,729 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 08:37:55,731 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:55,731 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:55,731 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:37:55,731 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:37:55,731 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 08:37:55,731 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 08:37:55,732 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior193#646257023] 08:37:55,742 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate194] 08:37:55,743 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer195#-629443076] 08:37:55,745 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:55,745 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:55,745 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:55,745 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-334707668] 08:37:55,756 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 08:37:55,814 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 08:37:55,815 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 08:37:55,815 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 08:37:55,815 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 08:37:56,220 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 08:37:56,220 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 08:37:56,221 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 08:37:56,221 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:37:56,221 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 08:37:56,221 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:37:56,221 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:37:56,222 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:37:56,222 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:37:56,222 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:37:56,222 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 08:37:56,222 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior198#1910245955] 08:37:56,234 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate199] 08:37:56,235 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-1229499747] 08:37:56,236 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#601023853] 08:37:56,236 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer202#1784854909] 08:37:56,237 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer203#1707260348] 08:37:56,243 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:56,243 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 08:37:56,247 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 08:37:56,247 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:37:56,247 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 08:37:56,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 08:37:56,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 08:37:56,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 08:37:56,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 08:37:56,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 08:37:56,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 08:37:56,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:37:56,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 08:37:56,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 08:37:56,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 08:37:56,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:37:56,249 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:37:56,249 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:37:56,249 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:37:56,249 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:37:56,249 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:37:56,249 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior204#1380004881] 08:37:56,260 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate205] 08:37:56,260 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#1423298501] 08:37:56,261 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#1872588786] 08:37:56,261 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer208#-216665953] 08:37:56,261 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer209#-1773110085] 08:37:56,263 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:56,264 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:56,264 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:56,264 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#2036396188] 08:37:56,275 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 08:37:56,378 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:56,378 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:56,378 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:56,378 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 08:37:56,378 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 08:37:56,378 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:37:56,378 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:37:56,378 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-678402669] 08:37:56,390 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 08:37:56,493 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:56,493 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:56,493 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:56,495 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 08:37:56,495 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 08:37:56,495 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior214#1624235947] 08:37:56,506 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate215] 08:37:56,507 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer216#-460699145] 08:37:56,509 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:56,509 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 08:37:56,510 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 08:37:56,510 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:56,510 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:37:56,510 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 08:37:56,510 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 08:37:56,510 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:37:56,510 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 08:37:56,510 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:37:56,511 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:37:56,511 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:37:56,511 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:37:56,511 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior217#1317581944] 08:37:56,522 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate218] 08:37:56,522 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer219#573859837] 08:37:56,522 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer220#245490419] 08:37:56,524 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:56,524 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:56,524 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:56,525 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#168126754] 08:37:56,536 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 08:37:56,538 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:56,538 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:56,539 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:56,539 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 08:37:56,539 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 08:37:56,539 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 08:37:56,539 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#1434995628] 08:37:56,550 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 08:37:56,552 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:56,552 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:56,552 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:56,553 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 08:37:56,553 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 08:37:56,553 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 08:37:56,553 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#273814394] 08:37:56,564 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 08:37:56,668 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:56,669 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:56,669 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:56,669 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 08:37:56,669 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 08:37:56,669 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:37:56,669 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:37:56,669 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:56,669 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:56,669 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 08:37:56,669 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 08:37:56,669 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:37:56,669 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:56,669 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:56,669 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 08:37:56,669 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 08:37:56,669 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 08:37:56,669 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 08:37:56,670 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:37:56,670 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:56,670 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:37:56,670 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 08:37:56,670 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 08:37:56,670 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:37:56,670 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#1859282653] 08:37:56,681 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 08:37:56,784 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 08:37:56,784 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 08:37:56,784 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 08:37:56,784 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-408407628] 08:37:56,797 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 08:37:56,802 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:56,802 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:56,802 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:37:56,802 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 08:37:56,802 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 08:37:56,802 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-1562411715] 08:37:56,813 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 08:37:56,817 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:37:56,817 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:37:56,817 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:37:56,817 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:37:56,817 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 08:37:56,817 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 08:37:56,817 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior233#1975021803] 08:37:56,828 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate234] 08:37:56,830 AM [test-akka.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [03/25/2024 08:37:56.829] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/25/2024 08:37:56.831] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.141:25520) [INFO] [akkaDeadLetter][03/25/2024 08:37:56.831] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#763830724] 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'. 08:37:56,832 AM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#763830724] 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/25/2024 08:37:56.832] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - Exiting completed 08:37:56,832 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - Exiting completed 08:37:56,833 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - Shutting down... [INFO] [03/25/2024 08:37:56.832] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - Shutting down... 08:37:56,833 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - Successfully shut down [INFO] [03/25/2024 08:37:56.833] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - Successfully shut down 08:37:56,842 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [03/25/2024 08:37:56.842] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.141:25520/system/remoting-terminator] Shutting down remote daemon. 08:37:56,843 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/25/2024 08:37:56.842] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.141:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 08:37:56,848 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [03/25/2024 08:37:56.848] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.141:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [03/25/2024 08:37:56.848] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger