[DEBUG] [07/13/2024 02:38:41.707] [main] [EventStream(akka://test)] logger log1-TestEventListener started 02:38:41,711 AM [test-akka.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/13/2024 02:38:41.711] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [07/13/2024 02:38:41.712] [main] [EventStream(akka://test)] Default Loggers started 02:38:41,723 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.246:25520] with UID [-9201891349708441033] 02:38:41,723 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.246:25520] - Starting up, Akka version [2.6.21] ... [INFO] [07/13/2024 02:38:41.722] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.246:25520] with UID [-9201891349708441033] [INFO] [07/13/2024 02:38:41.722] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.246:25520] - Starting up, Akka version [2.6.21] ... 02:38:41,727 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.246:25520] - Registered cluster JMX MBean [akka:type=Cluster] 02:38:41,727 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.246:25520] - Started up successfully 02:38:41,728 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.246:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 02:38:41,728 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.246:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [07/13/2024 02:38:41.727] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.246:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [07/13/2024 02:38:41.727] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.246:25520] - Started up successfully [INFO] [07/13/2024 02:38:41.727] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.246:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [07/13/2024 02:38:41.727] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.246:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 02:38:41,739 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:41,739 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:41,739 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:41,740 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 02:38:41,740 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 5 in "AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 02:38:41,740 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:41,740 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 02:38:41,740 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#2068087969] 02:38:41,741 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457] 02:38:41,741 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer458#-2066786063] 02:38:41,742 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:41,742 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 02:38:41,742 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:41,742 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 02:38:41,743 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 02:38:41,743 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 02:38:41,743 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 02:38:41,743 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior459#-717863426] 02:38:41,743 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate460] 02:38:41,743 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer461#-291209924] 02:38:41,744 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:41,744 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:41,744 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 02:38:41,744 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 02:38:41,744 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 02:38:41,744 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 02:38:41,744 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior462#176554912] 02:38:41,745 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate463] 02:38:41,745 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#-1326305784] 02:38:41,746 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:41,746 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:41,746 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:41,746 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 02:38:41,746 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 02:38:41,746 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 02:38:41,747 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:41,747 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 02:38:41,747 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior465#-2104342339] 02:38:41,747 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate466] 02:38:41,747 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer467#-302847042] 02:38:41,748 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:41,748 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 02:38:41,749 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 02:38:41,749 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:41,749 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 02:38:41,749 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 02:38:41,749 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 02:38:41,749 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 02:38:41,749 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 02:38:41,749 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 02:38:41,749 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:38:41,749 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:38:41,749 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:41,749 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 02:38:41,749 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior468#1600109981] 02:38:41,749 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate469] 02:38:41,749 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer470#-1831882289] 02:38:41,749 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer471#-1568508368] 02:38:41,755 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:41,755 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:41,755 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:41,756 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 02:38:41,756 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 02:38:41,756 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 02:38:41,756 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior472#794440243] 02:38:41,767 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate473] 02:38:41,767 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer474#-439059099] 02:38:41,771 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:41,771 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:41,771 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 02:38:41,771 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]], my term is 2 02:38:41,771 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:38:41,771 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 02:38:41,772 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:41,772 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 02:38:41,774 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#1131830630] 02:38:41,784 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476] 02:38:41,787 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:41,787 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:41,787 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 02:38:41,788 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 02:38:41,788 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 02:38:41,788 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 02:38:41,788 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#-1569754468] 02:38:41,799 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478] 02:38:41,799 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer479#-1356911168] 02:38:41,809 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:41,809 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:41,809 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:41,809 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior480#106162824] 02:38:41,820 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate481] 02:38:41,825 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 02:38:41,825 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 02:38:41,826 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 02:38:41,826 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 02:38:42,229 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 02:38:42,229 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 02:38:42,229 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 02:38:42,229 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 02:38:42,230 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 02:38:42,230 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:38:42,230 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:38:42,230 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:38:42,230 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:38:42,230 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:42,230 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 02:38:42,230 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior482#-1439160626] 02:38:42,241 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate483] 02:38:42,242 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer484#-1711447401] 02:38:42,242 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer485#194405289] 02:38:42,242 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer486#370863924] 02:38:42,242 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer487#-398603846] 02:38:42,245 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:42,245 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 02:38:42,247 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 02:38:42,247 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 02:38:42,247 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 02:38:42,247 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 02:38:42,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 02:38:42,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 02:38:42,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 02:38:42,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 02:38:42,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 02:38:42,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 02:38:42,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 02:38:42,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 02:38:42,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 02:38:42,249 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:38:42,249 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:38:42,249 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:38:42,249 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:38:42,249 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:42,249 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:38:42,249 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior488#-944394870] 02:38:42,260 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate489] 02:38:42,260 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer490#1086660665] 02:38:42,260 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer491#1064773467] 02:38:42,260 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer492#-1792358124] 02:38:42,261 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer493#-1159878419] 02:38:42,265 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:42,265 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:42,265 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:42,265 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior494#1940928276] 02:38:42,276 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate495] 02:38:42,278 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:42,278 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:42,278 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:42,279 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 02:38:42,279 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 02:38:42,279 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:42,279 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:38:42,279 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior496#324748352] 02:38:42,290 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate497] 02:38:42,292 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:42,292 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:42,292 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:42,294 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 02:38:42,294 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 02:38:42,294 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior498#-1433795057] 02:38:42,305 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate499] 02:38:42,305 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer500#901419878] 02:38:42,307 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:42,307 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 02:38:42,308 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 02:38:42,308 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:42,308 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 02:38:42,308 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 02:38:42,308 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 02:38:42,308 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 02:38:42,308 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 02:38:42,308 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:38:42,308 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:38:42,308 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:42,308 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:38:42,308 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior501#-1447962038] 02:38:42,319 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate502] 02:38:42,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer503#137336787] 02:38:42,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer504#1440732530] 02:38:42,321 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:42,321 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:42,321 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:42,321 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior505#598016125] 02:38:42,332 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate506] 02:38:42,334 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:42,334 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:42,334 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:42,334 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 02:38:42,334 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 02:38:42,334 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 02:38:42,334 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior507#957522511] 02:38:42,345 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate508] 02:38:42,347 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:42,347 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:42,347 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:42,347 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 02:38:42,347 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 02:38:42,347 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 02:38:42,347 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior509#614846555] 02:38:42,358 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate510] 02:38:42,360 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:42,360 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:42,360 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:42,360 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 02:38:42,360 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 02:38:42,360 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:42,360 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:38:42,360 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:42,360 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:42,360 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5], my term is 2 02:38:42,360 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5]" message is greater than Candidate's term 2 - switching to Follower 02:38:42,360 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:38:42,360 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:42,360 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:42,360 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 02:38:42,360 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100]" message is greater than Candidate's term 2 - switching to Follower 02:38:42,360 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100] - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 02:38:42,360 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 02:38:42,361 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:38:42,361 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:42,361 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:38:42,361 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 02:38:42,361 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 02:38:42,361 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:38:42,361 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior511#1331244710] 02:38:42,371 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate512] 02:38:42,373 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 02:38:42,373 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 02:38:42,373 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 02:38:42,373 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior513#-272953132] 02:38:42,383 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate514] 02:38:42,385 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:42,385 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:42,385 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 02:38:42,385 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 1001 02:38:42,385 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 02:38:42,385 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior515#-689075246] 02:38:42,396 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate516] 02:38:42,397 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:38:42,397 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:38:42,397 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 02:38:42,397 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 02:38:42,398 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 02:38:42,398 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 02:38:42,398 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior517#625848824] 02:38:42,408 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate518] [INFO] [07/13/2024 02:38:42.409] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:38:42,409 AM [test-akka.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/13/2024 02:38:42.410] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.246:25520) [INFO] [akkaDeadLetter][07/13/2024 02:38:42.410] [test-akka.actor.default-dispatcher-4] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1472676771] 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'. 02:38:42,410 AM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1472676771] 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] [07/13/2024 02:38:42.411] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.246:25520] - Exiting completed [INFO] [07/13/2024 02:38:42.411] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.246:25520] - Shutting down... [INFO] [07/13/2024 02:38:42.411] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.246:25520] - Successfully shut down 02:38:42,412 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.246:25520] - Exiting completed 02:38:42,412 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.246:25520] - Shutting down... 02:38:42,412 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.246:25520] - Successfully shut down [INFO] [07/13/2024 02:38:42.413] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.246:25520/system/remoting-terminator] Shutting down remote daemon. 02:38:42,413 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 02:38:42,413 AM [test-akka.actor.default-dispatcher-4] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/13/2024 02:38:42.413] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.246:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 02:38:42,415 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [07/13/2024 02:38:42.415] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.246:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [07/13/2024 02:38:42.415] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger