[DEBUG] [10/11/2024 16:17:17.981] [main] [EventStream(akka://test)] logger log1-TestEventListener started 04:17:17,981 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/11/2024 16:17:17.981] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [10/11/2024 16:17:17.982] [main] [EventStream(akka://test)] Default Loggers started [INFO] [10/11/2024 16:17:17.991] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.243:25520] with UID [-4011849949575474371] [INFO] [10/11/2024 16:17:17.991] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.243:25520] - Starting up, Akka version [2.6.21] ... 04:17:17,991 PM [test-akka.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.243:25520] with UID [-4011849949575474371] 04:17:17,991 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.243:25520] - Starting up, Akka version [2.6.21] ... [INFO] [10/11/2024 16:17:17.993] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.243:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [10/11/2024 16:17:17.993] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.243:25520] - Started up successfully [INFO] [10/11/2024 16:17:17.994] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.243:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [10/11/2024 16:17:17.994] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.243:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 04:17:17,995 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.243:25520] - Registered cluster JMX MBean [akka:type=Cluster] 04:17:17,995 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.243:25520] - Started up successfully 04:17:17,995 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.243:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 04:17:17,995 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.243:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 04:17:18,5 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,5 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,5 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,5 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 04:17:18,6 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 5 in "AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 04:17:18,6 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:18,6 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 04:17:18,6 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#-979898718] 04:17:18,16 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457] 04:17:18,17 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer458#139884363] 04:17:18,18 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,18 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 04:17:18,18 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,18 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 04:17:18,18 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 04:17:18,18 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 04:17:18,18 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 04:17:18,18 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior459#307591590] 04:17:18,29 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate460] 04:17:18,29 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer461#-1084439740] 04:17:18,31 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,31 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,31 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:17:18,32 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 04:17:18,32 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 04:17:18,32 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 04:17:18,32 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior462#1661932927] 04:17:18,43 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate463] 04:17:18,43 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#-229209716] 04:17:18,45 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,45 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,45 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,45 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 04:17:18,45 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 04:17:18,45 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:17:18,46 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:18,46 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:17:18,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior465#635985305] 04:17:18,57 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate466] 04:17:18,57 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer467#1080489069] 04:17:18,59 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,59 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 04:17:18,60 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:17:18,60 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,60 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 04:17:18,60 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 04:17:18,60 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 04:17:18,60 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 04:17:18,60 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 04:17:18,60 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 04:17:18,60 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:17:18,60 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:17:18,60 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:18,60 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 04:17:18,60 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior468#648372320] 04:17:18,71 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate469] 04:17:18,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer470#757416477] 04:17:18,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer471#1736368325] 04:17:18,72 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,72 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,72 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,72 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 04:17:18,72 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 04:17:18,72 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 04:17:18,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior472#-870894148] 04:17:18,83 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate473] 04:17:18,83 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer474#1304312585] 04:17:18,84 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,84 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,84 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 04:17:18,84 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]], my term is 2 04:17:18,84 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 04:17:18,84 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:17:18,84 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:18,84 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:17:18,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#-1593153934] 04:17:18,95 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476] 04:17:18,99 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,99 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,99 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:17:18,100 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 04:17:18,100 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 04:17:18,100 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 04:17:18,100 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#-1755955378] 04:17:18,111 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478] 04:17:18,111 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer479#2014345676] 04:17:18,112 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,112 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,112 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,112 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior480#466111878] 04:17:18,123 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate481] 04:17:18,125 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 04:17:18,125 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 04:17:18,125 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 04:17:18,125 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 04:17:18,528 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 04:17:18,528 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 04:17:18,528 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 04:17:18,528 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 04:17:18,528 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:17:18,528 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:17:18,528 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:17:18,529 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:17:18,529 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:17:18,529 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:18,529 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 04:17:18,529 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior482#653460113] 04:17:18,540 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate483] 04:17:18,540 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer484#515431881] 04:17:18,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer485#1057306386] 04:17:18,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer486#1190046790] 04:17:18,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer487#1156639489] 04:17:18,543 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,543 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 04:17:18,545 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 04:17:18,545 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 04:17:18,545 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 04:17:18,545 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 04:17:18,545 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 04:17:18,545 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 04:17:18,545 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 04:17:18,546 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 04:17:18,546 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 04:17:18,546 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 04:17:18,546 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 04:17:18,546 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 04:17:18,546 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:17:18,546 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:17:18,546 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:17:18,546 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:17:18,546 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:17:18,546 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:18,546 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 04:17:18,546 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior488#1907760254] 04:17:18,557 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate489] 04:17:18,557 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer490#-614707862] 04:17:18,557 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer491#-1902426058] 04:17:18,557 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer492#-91219244] 04:17:18,558 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer493#-1321600883] 04:17:18,560 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,560 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,560 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,561 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior494#365163870] 04:17:18,572 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate495] 04:17:18,573 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,573 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,573 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,573 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 04:17:18,573 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 04:17:18,573 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:18,573 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:17:18,573 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior496#-164926814] 04:17:18,584 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate497] 04:17:18,586 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,586 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,586 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,586 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 04:17:18,586 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 04:17:18,587 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior498#1396633959] 04:17:18,597 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate499] 04:17:18,597 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer500#681748546] 04:17:18,599 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,599 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 04:17:18,600 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:17:18,600 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,600 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 04:17:18,600 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 04:17:18,600 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 04:17:18,601 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 04:17:18,601 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 04:17:18,601 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:17:18,601 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:17:18,601 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:18,601 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:17:18,601 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior501#487558606] 04:17:18,612 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate502] 04:17:18,612 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer503#670250678] 04:17:18,612 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer504#487647190] 04:17:18,615 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,615 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,615 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,615 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior505#-305910744] 04:17:18,626 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate506] 04:17:18,630 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,630 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,630 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,630 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 04:17:18,630 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 04:17:18,630 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 04:17:18,630 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior507#1277253245] 04:17:18,641 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate508] 04:17:18,744 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,744 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,744 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,744 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 04:17:18,744 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 04:17:18,744 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 04:17:18,744 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior509#818473149] 04:17:18,755 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate510] 04:17:18,758 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,758 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,758 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,758 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 04:17:18,758 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 04:17:18,758 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:18,758 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:17:18,758 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,758 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,758 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5], my term is 2 04:17:18,758 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5]" message is greater than Candidate's term 2 - switching to Follower 04:17:18,758 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:17:18,758 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,758 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,758 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 04:17:18,758 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100]" message is greater than Candidate's term 2 - switching to Follower 04:17:18,758 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100] - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 04:17:18,758 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 04:17:18,758 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:17:18,759 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,759 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:17:18,759 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 04:17:18,759 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 04:17:18,759 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:17:18,759 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior511#-1521044935] 04:17:18,769 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate512] 04:17:18,772 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 04:17:18,772 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 04:17:18,772 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 04:17:18,772 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior513#280141195] 04:17:18,782 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate514] 04:17:18,784 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,784 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,784 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:17:18,784 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 1001 04:17:18,785 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 04:17:18,785 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior515#1524753564] 04:17:18,795 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate516] 04:17:18,797 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:17:18,797 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:18,797 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:17:18,798 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 04:17:18,798 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 04:17:18,798 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 04:17:18,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior517#279970462] 04:17:18,808 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate518] 04:17:18,809 PM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [10/11/2024 16:17:18.809] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:17:18,812 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.243:25520] - Exiting completed 04:17:18,812 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.243:25520] - Shutting down... 04:17:18,812 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.243:25520] - Successfully shut down 04:17:18,812 PM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1429869272] 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'. [WARN] [10/11/2024 16:17:18.812] [test-akka.actor.default-dispatcher-7] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.243:25520) [INFO] [10/11/2024 16:17:18.810] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.243:25520] - Exiting completed [INFO] [10/11/2024 16:17:18.810] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.243:25520] - Shutting down... [INFO] [10/11/2024 16:17:18.811] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.243:25520] - Successfully shut down [INFO] [akkaDeadLetter][10/11/2024 16:17:18.812] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1429869272] 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] [10/11/2024 16:17:18.813] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.243:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [10/11/2024 16:17:18.813] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.243:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:17:18,813 PM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 04:17:18,813 PM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/11/2024 16:17:18.815] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.243:25520/system/remoting-terminator] Remoting shut down. 04:17:18,815 PM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [10/11/2024 16:17:18.815] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger