[DEBUG] [04/15/2024 10:47:45.115] [main] [EventStream(akka://test)] logger log1-TestEventListener started 10:47:45,115 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [04/15/2024 10:47:45.116] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [04/15/2024 10:47:45.116] [main] [EventStream(akka://test)] Default Loggers started 10:47:45,162 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.140:25520] with UID [2022656371839004296] [INFO] [04/15/2024 10:47:45.161] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.140:25520] with UID [2022656371839004296] [INFO] [04/15/2024 10:47:45.163] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.140:25520] - Starting up, Akka version [2.6.21] ... 10:47:45,164 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.140:25520] - Starting up, Akka version [2.6.21] ... [INFO] [04/15/2024 10:47:45.168] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.140:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [04/15/2024 10:47:45.168] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.140:25520] - Started up successfully 10:47:45,169 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.140:25520] - Registered cluster JMX MBean [akka:type=Cluster] 10:47:45,169 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.140:25520] - Started up successfully 10:47:45,181 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.140:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 10:47:45,181 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.140:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [04/15/2024 10:47:45.175] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.140:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [04/15/2024 10:47:45.175] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.140:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 10:47:45,313 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:45,333 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:45,333 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:45,345 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 10:47:45,345 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 10:47:45,345 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:47:45,345 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 10:47:45,345 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#-183171766] 10:47:45,367 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 10:47:45,368 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-896748675] 10:47:45,376 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:45,377 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 10:47:45,377 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:45,377 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:47:45,377 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 10:47:45,377 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:47:45,377 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:47:45,378 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#1423198673] 10:47:45,389 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 10:47:45,389 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#-1558697104] 10:47:45,393 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:45,393 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:45,393 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:47:45,394 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:47:45,394 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 10:47:45,394 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 10:47:45,394 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#-2043758707] 10:47:45,406 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 10:47:45,406 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#767180079] 10:47:45,408 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:45,408 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:45,408 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:45,409 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 10:47:45,409 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=[]] 10:47:45,409 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 10:47:45,409 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:47:45,409 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 10:47:45,410 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#-868943383] 10:47:45,421 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 10:47:45,421 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#951857739] 10:47:45,430 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:45,430 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 10:47:45,431 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 10:47:45,431 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:45,431 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:47:45,431 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 10:47:45,431 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 10:47:45,432 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:47:45,432 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 10:47:45,433 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 10:47:45,433 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:47:45,433 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:47:45,433 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:47:45,433 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 10:47:45,433 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#398374674] 10:47:45,444 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 10:47:45,445 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#608017946] 10:47:45,445 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#1752728445] 10:47:45,448 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:45,448 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:45,448 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:45,450 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 10:47:45,450 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 10:47:45,450 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 10:47:45,450 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#-2002684060] 10:47:45,461 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 10:47:45,461 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#-1471494987] 10:47:45,466 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:45,466 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:45,466 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:47:45,467 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 10:47:45,467 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]]] 10:47:45,467 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 10:47:45,467 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:47:45,467 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 10:47:45,467 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#-1864282333] 10:47:45,479 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 10:47:45,482 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:45,482 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:45,482 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:47:45,483 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:47:45,483 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 10:47:45,483 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 10:47:45,484 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#1218139615] 10:47:45,495 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 10:47:45,495 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#1542194016] 10:47:45,501 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:45,501 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:45,501 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:45,501 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#-1711523023] 10:47:45,513 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 10:47:45,743 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 10:47:45,744 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 10:47:45,744 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 10:47:45,744 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 10:47:46,148 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 10:47:46,148 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 10:47:46,148 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 10:47:46,148 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:47:46,149 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 10:47:46,149 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:47:46,149 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:47:46,150 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:47:46,150 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:47:46,150 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:47:46,150 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 10:47:46,151 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#2113444565] 10:47:46,162 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 10:47:46,162 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#1855943318] 10:47:46,163 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#814159678] 10:47:46,163 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#758248349] 10:47:46,164 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-708983953] 10:47:46,166 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:46,166 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 10:47:46,171 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 10:47:46,171 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:47:46,171 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 10:47:46,171 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 10:47:46,171 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 10:47:46,171 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 10:47:46,172 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 10:47:46,172 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 10:47:46,172 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 10:47:46,172 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:47:46,172 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 10:47:46,172 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 10:47:46,172 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 10:47:46,172 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:47:46,172 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:47:46,172 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:47:46,172 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:47:46,173 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:47:46,173 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 10:47:46,173 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#-1409615718] 10:47:46,184 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 10:47:46,184 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#-1596743270] 10:47:46,185 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#-1236453362] 10:47:46,186 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#1167097948] 10:47:46,186 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-380194317] 10:47:46,292 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:46,292 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:46,292 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:46,293 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#-1255107563] 10:47:46,304 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 10:47:46,409 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:46,409 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:46,409 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:46,409 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 10:47:46,409 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 10:47:46,410 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:47:46,410 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:47:46,410 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#-106023359] 10:47:46,421 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 10:47:46,526 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:46,526 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:46,526 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:46,527 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 10:47:46,527 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 10:47:46,527 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#539966019] 10:47:46,539 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 10:47:46,539 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#-1447623871] 10:47:46,644 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:46,644 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 10:47:46,646 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 10:47:46,647 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:46,647 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:47:46,647 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 10:47:46,647 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 10:47:46,647 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:47:46,647 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 10:47:46,647 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:47:46,647 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:47:46,647 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:47:46,648 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:47:46,648 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#847560178] 10:47:46,659 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 10:47:46,659 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#1379125349] 10:47:46,660 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#-1439163127] 10:47:46,664 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:46,664 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:46,664 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:46,664 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#-740518008] 10:47:46,675 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 10:47:46,677 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:46,678 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:46,678 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:46,678 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 10:47:46,678 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 10:47:46,678 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 10:47:46,678 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-1828634022] 10:47:46,689 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 10:47:46,694 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:46,694 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:46,694 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:46,694 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 10:47:46,694 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 10:47:46,694 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 10:47:46,694 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#1515158550] 10:47:46,705 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 10:47:46,707 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:46,708 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:46,708 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:46,708 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 10:47:46,708 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 10:47:46,708 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:47:46,708 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:47:46,708 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:46,708 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:46,708 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 10:47:46,708 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 10:47:46,708 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:47:46,708 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:46,708 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:46,708 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 10:47:46,708 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 10:47:46,709 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 10:47:46,709 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 10:47:46,709 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:47:46,709 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:46,709 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:47:46,709 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 10:47:46,709 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 10:47:46,709 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:47:46,709 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#853934748] 10:47:46,720 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 10:47:46,722 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 10:47:46,722 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 10:47:46,722 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 10:47:46,723 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#925988890] 10:47:46,734 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 10:47:46,735 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:46,736 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:46,736 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:47:46,736 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 10:47:46,736 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 10:47:46,736 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-495369840] 10:47:46,748 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 10:47:46,753 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:47:46,753 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:47:46,753 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:47:46,753 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:47:46,753 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 10:47:46,753 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 10:47:46,753 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#658440700] 10:47:46,764 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 10:47:46,766 AM [test-akka.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [04/15/2024 10:47:46.766] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [04/15/2024 10:47:46.768] [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.140:25520) [INFO] [akkaDeadLetter][04/15/2024 10:47:46.768] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1532040164] 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/15/2024 10:47:46.770] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.140:25520] - Exiting completed [INFO] [04/15/2024 10:47:46.770] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.140:25520] - Shutting down... [INFO] [04/15/2024 10:47:46.770] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.140:25520] - Successfully shut down 10:47:46,773 AM [test-akka.actor.default-dispatcher-12] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1532040164] 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'. 10:47:46,773 AM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.171.140:25520] - Exiting completed 10:47:46,773 AM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.171.140:25520] - Shutting down... 10:47:46,773 AM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.171.140:25520] - Successfully shut down 10:47:46,779 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 10:47:46,779 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [04/15/2024 10:47:46.779] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.140:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [04/15/2024 10:47:46.779] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.140:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [04/15/2024 10:47:46.785] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.140:25520/system/remoting-terminator] Remoting shut down. 10:47:46,785 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [04/15/2024 10:47:46.785] [test-akka.actor.internal-dispatcher-10] [EventStream] shutting down: StandardOutLogger