[DEBUG] [03/26/2024 23:56:48.840] [main] [EventStream(akka://test)] logger log1-TestEventListener started 11:56:48,843 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/26/2024 23:56:48.843] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/26/2024 23:56:48.844] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/26/2024 23:56:48.874] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.167:25520] with UID [1191184023035334213] [INFO] [03/26/2024 23:56:48.875] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.167:25520] - Starting up, Akka version [2.6.21] ... 11:56:48,876 PM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.167:25520] with UID [1191184023035334213] 11:56:48,876 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.167:25520] - Starting up, Akka version [2.6.21] ... 11:56:48,888 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.167:25520] - Registered cluster JMX MBean [akka:type=Cluster] 11:56:48,888 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.167:25520] - Started up successfully 11:56:48,888 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.167:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 11:56:48,888 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.167:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [03/26/2024 23:56:48.878] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.167:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/26/2024 23:56:48.879] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.167:25520] - Started up successfully [INFO] [03/26/2024 23:56:48.884] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.167:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/26/2024 23:56:48.884] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.167:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 11:56:48,999 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:48,999 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:48,999 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:49,1 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 11:56:49,1 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 11:56:49,1 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:56:49,1 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 11:56:49,1 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior172#1616832932] 11:56:49,14 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate173] 11:56:49,14 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer174#-48760133] 11:56:49,20 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:49,22 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 11:56:49,22 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:49,22 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:56:49,22 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:56:49,22 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:56:49,22 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:56:49,22 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior175#-1269603199] 11:56:49,34 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate176] 11:56:49,34 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer177#4237304] 11:56:49,39 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:49,40 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:49,40 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:56:49,42 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:56:49,42 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 11:56:49,42 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 11:56:49,42 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior178#1788555721] 11:56:49,53 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate179] 11:56:49,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer180#-797666245] 11:56:49,58 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:49,58 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:49,58 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:49,60 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 11:56:49,60 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=[]] 11:56:49,60 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:56:49,60 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:56:49,60 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:56:49,60 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior181#785092718] 11:56:49,71 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate182] 11:56:49,72 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer183#1261081039] 11:56:49,178 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:49,178 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 11:56:49,179 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:56:49,179 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:49,184 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:56:49,184 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 11:56:49,184 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 11:56:49,184 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:56:49,184 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 11:56:49,186 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 11:56:49,187 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:56:49,187 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:56:49,190 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:56:49,190 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 11:56:49,190 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior184#221632063] 11:56:49,201 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate185] 11:56:49,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer186#911542768] 11:56:49,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer187#-1598008458] 11:56:49,305 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:49,305 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:49,305 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:49,306 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 11:56:49,306 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 11:56:49,306 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 11:56:49,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior188#902760902] 11:56:49,318 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate189] 11:56:49,318 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer190#-1581829149] 11:56:49,423 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:49,423 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:49,423 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:56:49,424 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 11:56:49,424 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]]] 11:56:49,424 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:56:49,424 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:56:49,424 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:56:49,427 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#428286391] 11:56:49,439 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 11:56:49,444 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:49,444 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:49,444 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:56:49,445 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:56:49,445 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 11:56:49,445 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 11:56:49,445 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior193#1884764463] 11:56:49,457 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate194] 11:56:49,457 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer195#-1271695962] 11:56:49,460 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:49,460 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:49,460 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:49,461 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#606745750] 11:56:49,472 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 11:56:49,534 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 11:56:49,535 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 11:56:49,536 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 11:56:49,536 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 11:56:49,940 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 11:56:49,940 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 11:56:49,940 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 11:56:49,940 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:56:49,941 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:56:49,941 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:56:49,941 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:56:49,941 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:56:49,942 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:56:49,942 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:56:49,942 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 11:56:49,942 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior198#1446775504] 11:56:49,954 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate199] 11:56:49,954 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#1295133297] 11:56:49,954 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-1745482404] 11:56:49,955 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer202#-2091860094] 11:56:49,955 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer203#-195103449] 11:56:49,959 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:49,959 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 11:56:49,962 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 11:56:49,962 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:56:49,962 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 11:56:49,962 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 11:56:49,962 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 11:56:49,962 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 11:56:49,963 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 11:56:49,963 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 11:56:49,963 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 11:56:49,963 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:56:49,963 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 11:56:49,963 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 11:56:49,963 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:56:49,963 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:56:49,963 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:56:49,963 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:56:49,963 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:56:49,963 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:56:49,963 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:56:49,963 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior204#-430995482] 11:56:49,975 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate205] 11:56:49,976 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#-687496644] 11:56:49,976 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-1408148706] 11:56:49,976 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer208#437542982] 11:56:49,977 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer209#1309832357] 11:56:50,81 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:50,81 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:50,81 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:50,81 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#2087287594] 11:56:50,93 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 11:56:50,96 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:50,96 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:50,96 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:50,97 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:56:50,97 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 11:56:50,97 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:56:50,97 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:56:50,97 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-36057013] 11:56:50,109 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 11:56:50,112 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:50,112 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:50,112 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:50,113 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 11:56:50,113 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 11:56:50,113 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior214#1120468036] 11:56:50,124 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate215] 11:56:50,124 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer216#495927750] 11:56:50,126 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:50,126 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 11:56:50,130 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:56:50,130 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:50,130 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:56:50,130 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 11:56:50,131 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 11:56:50,131 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:56:50,131 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 11:56:50,131 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:56:50,131 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:56:50,131 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:56:50,131 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:56:50,131 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior217#-1689142410] 11:56:50,142 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate218] 11:56:50,143 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer219#884752600] 11:56:50,143 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer220#-1533363123] 11:56:50,147 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:50,147 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:50,147 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:50,147 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#999702328] 11:56:50,158 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 11:56:50,161 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:50,161 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:50,161 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:50,161 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 11:56:50,161 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 11:56:50,161 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 11:56:50,162 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#477267895] 11:56:50,173 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 11:56:50,177 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:50,177 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:50,177 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:50,177 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 11:56:50,177 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 11:56:50,177 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 11:56:50,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-870216620] 11:56:50,188 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 11:56:50,191 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:50,191 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:50,191 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:50,191 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 11:56:50,191 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 11:56:50,191 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:56:50,191 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:56:50,191 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:50,191 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:50,192 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 11:56:50,192 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 11:56:50,192 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:56:50,192 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:50,192 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:50,192 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 11:56:50,192 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 11:56:50,192 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 11:56:50,192 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 11:56:50,192 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:56:50,192 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:50,192 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:56:50,192 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 11:56:50,192 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 11:56:50,192 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:56:50,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#2031755397] 11:56:50,203 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 11:56:50,206 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 11:56:50,206 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 11:56:50,206 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 11:56:50,206 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-1130873932] 11:56:50,217 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 11:56:50,220 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:50,220 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:50,220 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:56:50,220 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 11:56:50,220 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 11:56:50,220 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#1783108997] 11:56:50,231 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 11:56:50,235 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:56:50,235 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:56:50,235 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:56:50,236 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:56:50,236 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 11:56:50,236 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 11:56:50,236 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior233#-1538095777] 11:56:50,247 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate234] 11:56:50,249 PM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [03/26/2024 23:56:50.248] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/26/2024 23:56:50.250] [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.167:25520) [INFO] [03/26/2024 23:56:50.251] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.167:25520] - Exiting completed 11:56:50,252 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.167:25520] - Exiting completed [INFO] [03/26/2024 23:56:50.252] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.167:25520] - Shutting down... 11:56:50,252 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.167:25520] - Shutting down... 11:56:50,253 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.167:25520] - Successfully shut down 11:56:50,253 PM [test-akka.actor.default-dispatcher-11] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1874458837] 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/26/2024 23:56:50.252] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.167:25520] - Successfully shut down [INFO] [akkaDeadLetter][03/26/2024 23:56:50.250] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1874458837] 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/26/2024 23:56:50.255] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.167:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [03/26/2024 23:56:50.255] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.167:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 11:56:50,256 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 11:56:50,256 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports.