[DEBUG] [04/11/2024 01:13:01.656] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:13:01,662 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [04/11/2024 01:13:01.663] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [04/11/2024 01:13:01.663] [main] [EventStream(akka://test)] Default Loggers started [INFO] [04/11/2024 01:13:01.711] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.228:25520] with UID [5244362585904488661] 01:13:01,712 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.228:25520] with UID [5244362585904488661] [INFO] [04/11/2024 01:13:01.713] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.228:25520] - Starting up, Akka version [2.6.21] ... 01:13:01,714 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.228:25520] - Starting up, Akka version [2.6.21] ... 01:13:01,722 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.228:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:13:01,722 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.228:25520] - Started up successfully [INFO] [04/11/2024 01:13:01.719] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.228:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [04/11/2024 01:13:01.719] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.228:25520] - Started up successfully [INFO] [04/11/2024 01:13:01.724] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.228:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [04/11/2024 01:13:01.724] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.228:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:13:01,726 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.228:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:13:01,726 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.228:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:13:01,774 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:01,790 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:01,790 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:01,791 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 01:13:01,791 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 01:13:01,791 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:01,791 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 01:13:01,792 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#1037827083] 01:13:01,803 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 01:13:01,804 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-1020298066] 01:13:01,907 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:01,908 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 01:13:01,908 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:01,909 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:13:01,909 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:13:01,909 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:13:01,909 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:13:01,909 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#1831998998] 01:13:01,921 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 01:13:01,922 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#471600900] 01:13:02,28 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:02,28 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:02,28 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:13:02,29 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:13:02,29 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 01:13:02,29 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:13:02,32 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#-1136645547] 01:13:02,43 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 01:13:02,44 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#1728648940] 01:13:02,148 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:02,148 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:02,148 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:02,150 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 01:13:02,150 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=[]] 01:13:02,150 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:13:02,150 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:02,150 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:13:02,151 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#-888097893] 01:13:02,162 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 01:13:02,162 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#-1957702552] 01:13:02,265 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:02,266 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 01:13:02,268 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:13:02,268 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:02,269 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:13:02,269 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:13:02,269 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:13:02,269 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:13:02,269 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 01:13:02,271 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 01:13:02,271 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:13:02,271 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:13:02,271 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:02,271 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 01:13:02,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#-1645765490] 01:13:02,283 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 01:13:02,284 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#-806228874] 01:13:02,284 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#1542321792] 01:13:02,287 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:02,287 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:02,287 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:02,288 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 01:13:02,288 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 01:13:02,288 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 01:13:02,288 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#-1068311200] 01:13:02,299 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 01:13:02,300 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#793657587] 01:13:02,303 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:02,303 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:02,303 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:13:02,304 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 01:13:02,304 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]]] 01:13:02,304 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:13:02,304 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:02,304 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:13:02,304 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#1738299448] 01:13:02,316 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 01:13:02,319 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:02,319 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:02,319 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:13:02,320 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:13:02,320 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 01:13:02,320 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 01:13:02,321 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#-1793019705] 01:13:02,332 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 01:13:02,332 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#864744671] 01:13:02,334 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:02,335 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:02,335 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:02,335 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#162339823] 01:13:02,346 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 01:13:02,503 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 01:13:02,504 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 01:13:02,504 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 01:13:02,504 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 01:13:02,932 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 01:13:02,932 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:13:02,932 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 01:13:02,932 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:13:02,933 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:13:02,933 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:13:02,933 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:13:02,934 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:13:02,934 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:13:02,934 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:02,934 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 01:13:02,934 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-1395983223] 01:13:02,946 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 01:13:02,947 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#1903359590] 01:13:02,947 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#224917860] 01:13:02,947 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#1765967004] 01:13:02,948 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-757276200] 01:13:03,51 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:03,51 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 01:13:03,55 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 01:13:03,55 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:13:03,55 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 01:13:03,55 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 01:13:03,55 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 01:13:03,55 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 01:13:03,56 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 01:13:03,56 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:13:03,56 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:13:03,56 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:13:03,56 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:13:03,56 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 01:13:03,56 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:13:03,56 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:13:03,56 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:13:03,57 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:13:03,57 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:13:03,57 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:03,57 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:13:03,57 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#-86858801] 01:13:03,69 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 01:13:03,69 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#-1557531183] 01:13:03,70 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#-121861315] 01:13:03,70 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#-413179215] 01:13:03,71 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#1392807580] 01:13:03,175 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:03,176 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:03,176 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:03,176 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#-150856644] 01:13:03,188 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 01:13:03,291 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:03,291 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:03,291 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:03,291 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:13:03,292 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 01:13:03,292 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:03,292 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:13:03,292 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#1993116341] 01:13:03,303 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 01:13:03,409 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:03,410 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:03,410 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:03,411 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 01:13:03,411 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 01:13:03,412 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-753181125] 01:13:03,423 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 01:13:03,424 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#116807527] 01:13:03,428 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:03,428 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 01:13:03,429 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:13:03,429 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:03,430 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:13:03,430 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:13:03,430 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:13:03,430 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:13:03,430 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 01:13:03,430 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:13:03,430 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:13:03,430 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:03,430 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:13:03,430 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#1643862003] 01:13:03,441 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 01:13:03,442 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#330495885] 01:13:03,442 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#-171238548] 01:13:03,447 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:03,447 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:03,447 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:03,447 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#159136752] 01:13:03,458 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 01:13:03,462 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:03,462 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:03,462 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:03,462 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 01:13:03,462 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 01:13:03,462 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:13:03,463 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#1582083567] 01:13:03,474 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 01:13:03,579 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:03,579 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:03,579 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:03,579 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 01:13:03,579 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 01:13:03,579 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:13:03,580 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#-1833146716] 01:13:03,592 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 01:13:03,595 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:03,595 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:03,595 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:03,595 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 01:13:03,595 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 01:13:03,595 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:03,596 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:13:03,596 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:03,596 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:03,596 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 01:13:03,596 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 01:13:03,596 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:13:03,596 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:03,596 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:03,596 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 01:13:03,596 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 01:13:03,596 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 01:13:03,596 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 01:13:03,596 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:13:03,596 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:03,596 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:03,596 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 01:13:03,597 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 01:13:03,597 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:13:03,597 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#2081347250] 01:13:03,608 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 01:13:03,610 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:13:03,610 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 01:13:03,610 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 01:13:03,610 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#-1367417118] 01:13:03,621 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 01:13:03,624 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:03,624 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:03,624 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:13:03,624 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 01:13:03,624 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 01:13:03,624 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-1700054351] 01:13:03,635 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 01:13:03,639 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:03,639 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:03,639 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:13:03,639 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:13:03,639 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 01:13:03,639 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:13:03,640 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#1682539539] 01:13:03,651 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 01:13:03,652 AM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [04/11/2024 01:13:03.652] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [04/11/2024 01:13:03.653] [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.228:25520) [INFO] [akkaDeadLetter][04/11/2024 01:13:03.654] [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#1890503021] 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:13:03,654 AM [test-akka.actor.default-dispatcher-11] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1890503021] 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] [04/11/2024 01:13:03.657] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.228:25520] - Exiting completed [INFO] [04/11/2024 01:13:03.657] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.228:25520] - Shutting down... [INFO] [04/11/2024 01:13:03.658] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.228:25520] - Successfully shut down 01:13:03,662 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.228:25520] - Exiting completed 01:13:03,662 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.228:25520] - Shutting down... 01:13:03,662 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.228:25520] - Successfully shut down [INFO] [04/11/2024 01:13:03.662] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.228:25520/system/remoting-terminator] Shutting down remote daemon. 01:13:03,662 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [04/11/2024 01:13:03.662] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.228:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:13:03,663 AM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [04/11/2024 01:13:03.666] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.228:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [04/11/2024 01:13:03.667] [test-akka.actor.internal-dispatcher-10] [EventStream] shutting down: StandardOutLogger 01:13:03,667 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.