[DEBUG] [03/13/2024 12:19:20.758] [main] [EventStream(akka://test)] logger log1-TestEventListener started 12:19:20,760 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/13/2024 12:19:20.761] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/13/2024 12:19:20.761] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/13/2024 12:19:20.804] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.237:25520] with UID [-6662093915774859634] 12:19:20,805 PM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.237:25520] with UID [-6662093915774859634] [INFO] [03/13/2024 12:19:20.806] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.237:25520] - Starting up, Akka version [2.6.21] ... 12:19:20,806 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.237:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/13/2024 12:19:20.811] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.237:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/13/2024 12:19:20.811] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.237:25520] - Started up successfully 12:19:20,812 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.237:25520] - Registered cluster JMX MBean [akka:type=Cluster] 12:19:20,812 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.237:25520] - Started up successfully [INFO] [03/13/2024 12:19:20.816] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.237: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 12:19:20.816] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.237:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 12:19:20,866 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.237:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 12:19:20,866 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.237:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 12:19:20,968 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:20,990 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:20,991 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:20,994 PM [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 12:19:20,994 PM [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 12:19:20,994 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:20,994 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 12:19:20,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#-332682535] 12:19:21,7 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 12:19:21,7 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-1279653972] 12:19:21,112 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:21,115 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 12:19:21,115 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:21,115 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 12:19:21,116 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 12:19:21,116 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 12:19:21,116 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 12:19:21,116 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#1759552942] 12:19:21,127 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 12:19:21,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#1704015443] 12:19:21,235 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:21,235 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:21,235 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 12:19:21,237 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 12:19:21,237 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 12:19:21,237 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 12:19:21,238 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#-433128028] 12:19:21,250 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 12:19:21,250 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#-1587011685] 12:19:21,354 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:21,354 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:21,354 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:21,358 PM [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 12:19:21,358 PM [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=[]] 12:19:21,358 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 12:19:21,358 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:21,358 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 12:19:21,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#-199686244] 12:19:21,370 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 12:19:21,371 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#1628031654] 12:19:21,375 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:21,375 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 12:19:21,376 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 12:19:21,376 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:21,376 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 12:19:21,377 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 12:19:21,377 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 12:19:21,377 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:19:21,377 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 12:19:21,378 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 12:19:21,378 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:19:21,378 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:19:21,378 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:21,378 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 12:19:21,379 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#1744421653] 12:19:21,390 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 12:19:21,390 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#2110610480] 12:19:21,391 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#-491781644] 12:19:21,395 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:21,395 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:21,395 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:21,396 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 12:19:21,396 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 12:19:21,396 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 12:19:21,397 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#1116103823] 12:19:21,409 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 12:19:21,409 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#-624506259] 12:19:21,417 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:21,417 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:21,417 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 12:19:21,418 PM [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 12:19:21,418 PM [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]]] 12:19:21,418 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 12:19:21,418 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:21,418 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 12:19:21,419 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#387976410] 12:19:21,431 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 12:19:21,433 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:21,433 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:21,433 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 12:19:21,434 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 12:19:21,434 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 12:19:21,434 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 12:19:21,434 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#974691578] 12:19:21,446 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 12:19:21,446 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#-1333552272] 12:19:21,452 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:21,452 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:21,452 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:21,452 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#630488390] 12:19:21,463 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 12:19:21,712 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 12:19:21,714 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 12:19:21,714 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 12:19:21,715 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 12:19:22,119 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 12:19:22,119 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 12:19:22,120 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 12:19:22,120 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:19:22,120 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 12:19:22,120 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:19:22,121 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:19:22,121 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:19:22,122 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:19:22,122 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:22,122 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 12:19:22,122 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-427924964] 12:19:22,134 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 12:19:22,135 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#460943289] 12:19:22,135 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#-1948754207] 12:19:22,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#736933745] 12:19:22,137 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#1600458357] 12:19:22,140 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:22,141 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 12:19:22,145 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 12:19:22,145 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 12:19:22,145 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 12:19:22,145 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 12:19:22,145 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 12:19:22,145 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 12:19:22,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 12:19:22,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 12:19:22,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 12:19:22,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:19:22,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 12:19:22,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 12:19:22,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 12:19:22,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:19:22,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:19:22,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:19:22,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:19:22,146 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:22,146 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 12:19:22,146 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#-280768653] 12:19:22,158 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 12:19:22,159 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#1004122216] 12:19:22,159 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#-965341341] 12:19:22,160 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#-1432854419] 12:19:22,160 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-326140488] 12:19:22,164 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:22,164 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:22,164 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:22,165 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#-927097413] 12:19:22,176 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 12:19:22,281 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:22,282 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:22,282 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:22,282 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 12:19:22,282 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 12:19:22,282 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:22,282 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:19:22,282 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#434103994] 12:19:22,294 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 12:19:22,298 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:22,298 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:22,298 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:22,302 PM [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 12:19:22,302 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 12:19:22,302 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-378746650] 12:19:22,314 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 12:19:22,314 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#2023125876] 12:19:22,419 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:22,419 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 12:19:22,421 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 12:19:22,421 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:22,421 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 12:19:22,421 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 12:19:22,421 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 12:19:22,421 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:19:22,421 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 12:19:22,421 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:19:22,421 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:19:22,422 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:22,422 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:19:22,422 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#377755635] 12:19:22,433 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 12:19:22,434 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#687700077] 12:19:22,434 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#565437833] 12:19:22,439 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:22,440 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:22,440 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:22,440 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#1082744577] 12:19:22,452 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 12:19:22,457 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:22,457 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:22,457 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:22,457 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 12:19:22,457 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 12:19:22,457 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 12:19:22,458 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-880718582] 12:19:22,469 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 12:19:22,473 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:22,473 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:22,473 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:22,473 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 12:19:22,473 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 12:19:22,473 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 12:19:22,474 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#589899028] 12:19:22,485 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 12:19:22,489 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:22,489 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:22,489 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:22,489 PM [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 12:19:22,489 PM [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 12:19:22,489 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:22,489 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 12:19:22,489 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:22,489 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:22,490 PM [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 12:19:22,490 PM [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 12:19:22,490 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 12:19:22,490 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:22,490 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:22,490 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 12:19:22,490 PM [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 12:19:22,490 PM [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 12:19:22,490 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 12:19:22,490 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 12:19:22,490 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:22,490 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:19:22,490 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 12:19:22,490 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 12:19:22,490 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 12:19:22,490 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#1863201125] 12:19:22,502 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 12:19:22,505 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 12:19:22,505 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 12:19:22,505 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 12:19:22,505 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#939343648] 12:19:22,517 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 12:19:22,521 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:22,521 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:22,521 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 12:19:22,521 PM [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 12:19:22,521 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 12:19:22,521 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#115035938] 12:19:22,533 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 12:19:22,637 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:19:22,637 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:19:22,637 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 12:19:22,637 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 12:19:22,637 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 12:19:22,637 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 12:19:22,637 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#536665009] 12:19:22,649 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] [INFO] [03/13/2024 12:19:22.651] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 12:19:22,652 PM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/13/2024 12:19:22.653] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.237:25520) 12:19:22,654 PM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#383631707] 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] [akkaDeadLetter][03/13/2024 12:19:22.653] [test-akka.actor.default-dispatcher-13] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#383631707] 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 12:19:22.656] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.237:25520] - Exiting completed [INFO] [03/13/2024 12:19:22.656] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.237:25520] - Shutting down... [INFO] [03/13/2024 12:19:22.656] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.237:25520] - Successfully shut down 12:19:22,657 PM [test-akka.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [akka://test@10.30.170.237:25520] - Exiting completed 12:19:22,657 PM [test-akka.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [akka://test@10.30.170.237:25520] - Shutting down... 12:19:22,657 PM [test-akka.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [akka://test@10.30.170.237:25520] - Successfully shut down [INFO] [03/13/2024 12:19:22.663] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.170.237:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [03/13/2024 12:19:22.663] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.170.237:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 12:19:22,663 PM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 12:19:22,664 PM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/13/2024 12:19:22.669] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.237:25520/system/remoting-terminator] Remoting shut down. 12:19:22,670 PM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/13/2024 12:19:22.670] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger