[DEBUG] [01/20/2024 13:27:21.564] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:27:21,565 PM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [01/20/2024 13:27:21.565] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [01/20/2024 13:27:21.565] [main] [EventStream(akka://test)] Default Loggers started [INFO] [01/20/2024 13:27:21.590] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.197:25520] with UID [8520439592863222971] 01:27:21,590 PM [test-akka.actor.default-dispatcher-8] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.197:25520] with UID [8520439592863222971] [INFO] [01/20/2024 13:27:21.591] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.197:25520] - Starting up, Akka version [2.6.21] ... 01:27:21,591 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.197:25520] - Starting up, Akka version [2.6.21] ... [INFO] [01/20/2024 13:27:21.594] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.197:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [01/20/2024 13:27:21.594] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.197:25520] - Started up successfully 01:27:21,597 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.197:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:27:21,597 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.197:25520] - Started up successfully 01:27:21,603 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.197:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:27:21,603 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.197:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [01/20/2024 13:27:21.601] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.197:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [01/20/2024 13:27:21.601] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.197:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:27:21,712 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:21,712 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:21,712 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:21,714 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 01:27:21,714 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 01:27:21,714 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:21,714 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 01:27:21,714 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior172#1222466645] 01:27:21,727 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate173] 01:27:21,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer174#697948948] 01:27:21,834 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:21,835 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 01:27:21,835 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:21,835 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:27:21,836 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:27:21,836 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:27:21,836 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:27:21,836 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior175#428010654] 01:27:21,848 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate176] 01:27:21,849 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer177#-247513400] 01:27:21,953 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:21,953 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:21,953 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:27:21,954 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:27:21,954 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 01:27:21,954 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:27:21,954 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior178#1979056737] 01:27:21,966 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate179] 01:27:21,966 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer180#157492372] 01:27:21,970 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:21,970 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:21,970 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:21,971 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 01:27:21,971 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=[]] 01:27:21,971 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:27:21,971 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:21,971 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:27:21,972 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior181#961193087] 01:27:21,983 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate182] 01:27:21,983 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer183#1644010613] 01:27:22,87 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:22,87 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 01:27:22,90 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:27:22,90 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:22,90 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:27:22,90 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:27:22,90 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:27:22,90 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:27:22,90 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 01:27:22,92 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 01:27:22,92 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:27:22,92 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:27:22,95 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:22,95 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 01:27:22,95 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior184#473704022] 01:27:22,106 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate185] 01:27:22,107 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer186#1385053410] 01:27:22,108 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer187#-1243690411] 01:27:22,216 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:22,217 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:22,217 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:22,218 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 01:27:22,218 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 01:27:22,218 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 01:27:22,218 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior188#669509775] 01:27:22,230 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate189] 01:27:22,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer190#-1623201340] 01:27:22,335 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:22,335 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:22,335 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:27:22,335 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 01:27:22,335 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]]] 01:27:22,335 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:27:22,336 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:22,336 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:27:22,336 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#1026158604] 01:27:22,338 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 01:27:22,442 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:22,442 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:22,442 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:27:22,443 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:27:22,443 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 01:27:22,443 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 01:27:22,444 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior193#1676749424] 01:27:22,455 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate194] 01:27:22,455 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer195#617797823] 01:27:22,458 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:22,458 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:22,458 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:22,458 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-315125382] 01:27:22,470 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 01:27:22,587 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 01:27:22,590 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 01:27:22,590 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 01:27:22,591 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 01:27:22,995 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 01:27:22,995 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:27:22,995 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 01:27:22,995 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:27:22,995 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:27:22,995 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:27:22,996 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:27:22,996 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:27:22,996 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:27:22,996 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:22,996 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 01:27:22,997 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior198#1453505454] 01:27:23,8 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate199] 01:27:23,9 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#1040653191] 01:27:23,9 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-691583925] 01:27:23,9 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer202#200367390] 01:27:23,10 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer203#354516051] 01:27:23,13 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:23,13 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 01:27:23,15 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 01:27:23,15 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:27:23,15 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 01:27:23,15 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 01:27:23,15 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 01:27:23,15 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 01:27:23,16 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 01:27:23,16 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:27:23,16 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:27:23,16 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:27:23,16 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:27:23,16 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 01:27:23,16 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:27:23,16 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:27:23,17 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:27:23,17 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:27:23,17 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:27:23,17 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:23,17 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:27:23,17 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior204#14065524] 01:27:23,29 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate205] 01:27:23,29 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#-314707326] 01:27:23,30 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-1702944553] 01:27:23,34 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer208#1922009445] 01:27:23,35 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer209#136388352] 01:27:23,41 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:23,41 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:23,41 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:23,42 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#-497035625] 01:27:23,53 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 01:27:23,60 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:23,61 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:23,61 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:23,61 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:27:23,61 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 01:27:23,61 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:23,61 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:27:23,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-864485456] 01:27:23,73 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 01:27:23,80 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:23,80 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:23,80 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:23,81 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 01:27:23,81 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 01:27:23,84 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior214#-1778385752] 01:27:23,96 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate215] 01:27:23,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer216#155945562] 01:27:23,103 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:23,103 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 01:27:23,105 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:27:23,105 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:23,105 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:27:23,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:27:23,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:27:23,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:27:23,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 01:27:23,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:27:23,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:27:23,106 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:23,106 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:27:23,106 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior217#1411098686] 01:27:23,118 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate218] 01:27:23,118 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer219#-385158271] 01:27:23,118 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer220#-1165705541] 01:27:23,124 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:23,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:23,124 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:23,124 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-1870092572] 01:27:23,135 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 01:27:23,138 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:23,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:23,138 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:23,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 01:27:23,138 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 01:27:23,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:27:23,138 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#-1453647919] 01:27:23,149 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 01:27:23,153 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:23,153 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:23,153 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:23,153 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 01:27:23,154 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 01:27:23,154 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:27:23,154 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-1738841219] 01:27:23,165 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 01:27:23,269 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:23,269 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:23,269 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:23,269 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 01:27:23,269 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 01:27:23,269 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:23,269 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:27:23,269 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:23,269 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:23,269 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 01:27:23,269 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 01:27:23,269 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:27:23,270 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:23,270 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:23,270 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 01:27:23,270 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 01:27:23,270 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 01:27:23,270 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 01:27:23,270 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:27:23,270 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:23,270 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:23,270 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 01:27:23,270 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 01:27:23,270 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:27:23,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#-1103499917] 01:27:23,282 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 01:27:23,286 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:27:23,287 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 01:27:23,287 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 01:27:23,287 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#1159572606] 01:27:23,298 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 01:27:23,402 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:23,402 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:23,402 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:27:23,402 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 01:27:23,402 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 01:27:23,402 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-993588031] 01:27:23,414 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 01:27:23,517 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:23,517 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:23,517 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:27:23,518 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:27:23,518 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 01:27:23,518 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:27:23,518 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior233#-635252773] 01:27:23,529 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate234] 01:27:23,531 PM [test-akka.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [01/20/2024 13:27:23.530] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [01/20/2024 13:27:23.532] [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.197:25520) [INFO] [akkaDeadLetter][01/20/2024 13:27:23.533] [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#1090703229] 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'. 01:27:23,534 PM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1090703229] 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] [01/20/2024 13:27:23.534] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.197:25520] - Exiting completed 01:27:23,534 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.197:25520] - Exiting completed 01:27:23,534 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.197:25520] - Shutting down... [INFO] [01/20/2024 13:27:23.534] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.197:25520] - Shutting down... [INFO] [01/20/2024 13:27:23.534] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.197:25520] - Successfully shut down 01:27:23,534 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.197:25520] - Successfully shut down [INFO] [01/20/2024 13:27:23.538] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.197:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [01/20/2024 13:27:23.538] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.197:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:27:23,540 PM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:27:23,540 PM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [01/20/2024 13:27:23.544] [test-akka.remote.default-remote-dispatcher-11] [akka://test@10.30.170.197:25520/system/remoting-terminator] Remoting shut down. 01:27:23,544 PM [test-akka.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [01/20/2024 13:27:23.544] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger