[DEBUG] [03/27/2024 00:50:32.512] [main] [EventStream(akka://test)] logger log1-TestEventListener started 12:50:32,513 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/27/2024 00:50:32.514] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/27/2024 00:50:32.514] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/27/2024 00:50:32.556] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.79:25520] with UID [2417434161660132286] 12:50:32,556 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.79:25520] with UID [2417434161660132286] 12:50:32,558 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/27/2024 00:50:32.557] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/27/2024 00:50:32.562] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/27/2024 00:50:32.562] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - Started up successfully 12:50:32,564 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - Registered cluster JMX MBean [akka:type=Cluster] 12:50:32,564 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - Started up successfully [INFO] [03/27/2024 00:50:32.577] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/27/2024 00:50:32.577] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 12:50:32,583 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 12:50:32,583 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 12:50:32,706 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:32,726 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:32,726 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:32,728 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 12:50:32,728 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 12:50:32,728 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:50:32,728 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 12:50:32,728 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#247460697] 12:50:32,740 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 12:50:32,741 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#1359454748] 12:50:32,845 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:32,847 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 12:50:32,847 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:32,847 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 12:50:32,847 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 12:50:32,847 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 12:50:32,847 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 12:50:32,847 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#2112730904] 12:50:32,859 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 12:50:32,859 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#-988750471] 12:50:32,963 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:32,963 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:32,963 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 12:50:32,964 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 12:50:32,964 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 12:50:32,964 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 12:50:32,965 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#966953503] 12:50:32,976 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 12:50:32,976 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#1013355962] 12:50:32,979 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:32,979 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:32,979 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:32,980 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 12:50:32,980 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=[]] 12:50:32,980 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 12:50:32,981 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:50:32,981 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 12:50:32,981 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#86236785] 12:50:32,993 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 12:50:32,993 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#-2097544694] 12:50:33,97 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:33,97 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 12:50:33,100 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 12:50:33,100 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:33,100 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 12:50:33,100 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 12:50:33,100 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 12:50:33,100 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:50:33,100 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 12:50:33,102 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 12:50:33,102 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:50:33,102 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:50:33,102 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:50:33,102 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 12:50:33,103 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#828799563] 12:50:33,114 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 12:50:33,114 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#699654433] 12:50:33,115 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#1172694847] 12:50:33,118 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:33,119 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:33,119 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:33,119 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 12:50:33,119 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 12:50:33,119 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 12:50:33,120 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#87849618] 12:50:33,131 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 12:50:33,131 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#256220071] 12:50:33,235 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:33,235 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:33,235 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 12:50:33,235 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 12:50:33,235 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]]] 12:50:33,235 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 12:50:33,235 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:50:33,235 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 12:50:33,236 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#1173364493] 12:50:33,247 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 12:50:33,350 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:33,350 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:33,350 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 12:50:33,351 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 12:50:33,351 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 12:50:33,352 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 12:50:33,352 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#948273973] 12:50:33,363 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 12:50:33,364 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#-1731640086] 12:50:33,468 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:33,468 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:33,468 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:33,469 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#616957553] 12:50:33,481 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 12:50:33,634 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 12:50:33,637 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 12:50:33,637 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 12:50:33,638 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 12:50:34,48 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 12:50:34,49 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 12:50:34,49 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 12:50:34,49 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:50:34,49 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 12:50:34,49 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:50:34,50 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:50:34,50 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:50:34,50 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:50:34,51 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:50:34,51 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 12:50:34,51 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-854595132] 12:50:34,63 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 12:50:34,64 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#1932835560] 12:50:34,64 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#-1931012902] 12:50:34,65 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#1827768046] 12:50:34,65 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#467211152] 12:50:34,170 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:34,170 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 12:50:34,180 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 12:50:34,180 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 12:50:34,180 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 12:50:34,180 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 12:50:34,181 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 12:50:34,181 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 12:50:34,181 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 12:50:34,182 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 12:50:34,182 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 12:50:34,182 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:50:34,182 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 12:50:34,182 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 12:50:34,182 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 12:50:34,182 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:50:34,182 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:50:34,182 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:50:34,182 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:50:34,182 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:50:34,182 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 12:50:34,182 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#-248108057] 12:50:34,194 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 12:50:34,194 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#-1168857556] 12:50:34,194 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#579840594] 12:50:34,195 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#1914552104] 12:50:34,195 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-296905779] 12:50:34,300 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:34,301 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:34,301 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:34,301 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#-407779306] 12:50:34,312 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 12:50:34,316 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:34,316 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:34,316 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:34,316 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 12:50:34,316 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 12:50:34,316 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:50:34,316 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:50:34,316 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#1242178340] 12:50:34,327 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 12:50:34,431 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:34,432 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:34,432 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:34,433 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 12:50:34,433 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 12:50:34,433 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-816245508] 12:50:34,445 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 12:50:34,445 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#-1186160797] 12:50:34,448 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:34,448 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 12:50:34,450 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 12:50:34,450 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:34,450 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 12:50:34,450 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 12:50:34,450 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 12:50:34,450 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:50:34,450 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 12:50:34,450 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:50:34,450 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:50:34,450 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:50:34,450 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:50:34,451 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#-174770258] 12:50:34,461 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 12:50:34,462 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#-857366925] 12:50:34,462 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#1061214081] 12:50:34,466 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:34,466 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:34,466 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:34,466 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#718280773] 12:50:34,478 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 12:50:34,480 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:34,480 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:34,480 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:34,480 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 12:50:34,480 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 12:50:34,480 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 12:50:34,481 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-1184089000] 12:50:34,492 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 12:50:34,497 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:34,497 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:34,497 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:34,497 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 12:50:34,497 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 12:50:34,497 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 12:50:34,497 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#-420791826] 12:50:34,508 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 12:50:34,512 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:34,512 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:34,512 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:34,512 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 12:50:34,512 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 12:50:34,512 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:50:34,512 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 12:50:34,512 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:34,512 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:34,512 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 12:50:34,512 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 12:50:34,512 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 12:50:34,513 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:34,513 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:34,513 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 12:50:34,513 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 12:50:34,513 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 12:50:34,513 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 12:50:34,513 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 12:50:34,513 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:34,513 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:50:34,513 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 12:50:34,513 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 12:50:34,513 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 12:50:34,513 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-997221361] 12:50:34,524 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 12:50:34,527 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 12:50:34,527 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 12:50:34,527 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 12:50:34,528 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#-946502547] 12:50:34,538 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 12:50:34,540 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:34,540 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:34,540 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 12:50:34,540 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 12:50:34,540 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 12:50:34,540 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-1116859578] 12:50:34,551 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 12:50:34,554 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:50:34,554 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:50:34,554 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 12:50:34,554 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 12:50:34,554 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 12:50:34,554 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 12:50:34,555 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-346937806] 12:50:34,566 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] [INFO] [03/27/2024 00:50:34.567] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 12:50:34,567 AM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/27/2024 00:50:34.569] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.79:25520) 12:50:34,570 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - Exiting completed 12:50:34,570 AM [test-akka.actor.default-dispatcher-11] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1096998630] 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'. 12:50:34,570 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - Shutting down... 12:50:34,571 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - Successfully shut down [INFO] [03/27/2024 00:50:34.570] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - Exiting completed [INFO] [akkaDeadLetter][03/27/2024 00:50:34.570] [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#1096998630] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [03/27/2024 00:50:34.570] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - Shutting down... [INFO] [03/27/2024 00:50:34.571] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - Successfully shut down [INFO] [03/27/2024 00:50:34.576] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.79:25520/system/remoting-terminator] Shutting down remote daemon. 12:50:34,577 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 12:50:34,577 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/27/2024 00:50:34.576] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.79:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/27/2024 00:50:34.582] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.79:25520/system/remoting-terminator] Remoting shut down. 12:50:34,582 AM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.