[DEBUG] [10/16/2024 17:15:00.490] [main] [EventStream(akka://test)] logger log1-TestEventListener started
05:15:00,491 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started
[DEBUG] [10/16/2024 17:15:00.491] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started
[DEBUG] [10/16/2024 17:15:00.491] [main] [EventStream(akka://test)] Default Loggers started
[INFO] [10/16/2024 17:15:00.512] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.68:25520] with UID [-8653789087283001259]
05:15:00,513 PM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.68:25520] with UID [-8653789087283001259]
[INFO] [10/16/2024 17:15:00.513] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.68:25520] - Starting up, Akka version [2.6.21] ...
05:15:00,513 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.68:25520] - Starting up, Akka version [2.6.21] ...
[INFO] [10/16/2024 17:15:00.516] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.68:25520] - Registered cluster JMX MBean [akka:type=Cluster]
[INFO] [10/16/2024 17:15:00.516] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.68:25520] - Started up successfully
05:15:00,516 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.68:25520] - Registered cluster JMX MBean [akka:type=Cluster]
05:15:00,516 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.68:25520] - Started up successfully
[INFO] [10/16/2024 17:15:00.516] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.68:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing
[INFO] [10/16/2024 17:15:00.517] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.68:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining
05:15:00,517 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.68:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing
05:15:00,517 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.68:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining
05:15:00,529 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:00,529 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:00,529 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:00,529 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
05:15:00,529 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
05:15:00,530 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy
05:15:00,530 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5
05:15:00,530 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#-936222864]
05:15:00,541 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457]
05:15:00,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer458#410311633]
05:15:00,542 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:00,543 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1]
05:15:00,543 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:00,543 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1
05:15:00,543 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout
05:15:00,543 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3
05:15:00,543 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1
05:15:00,543 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior459#-1892536608]
05:15:00,554 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate460]
05:15:00,554 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer461#451691051]
05:15:00,555 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:00,555 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:00,555 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001
05:15:00,555 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001
05:15:00,555 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
05:15:00,555 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false]
05:15:00,555 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior462#-277247060]
05:15:00,566 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate463]
05:15:00,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#245488769]
05:15:00,568 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:00,568 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:00,568 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:00,568 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
05:15:00,568 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=[]]
05:15:00,568 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower
05:15:00,572 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy
05:15:00,572 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2
05:15:00,573 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior465#-1192648226]
05:15:00,584 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate466]
05:15:00,584 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer467#-833691021]
05:15:00,585 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:00,586 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1
05:15:00,586 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2]
05:15:00,586 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:00,586 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1
05:15:00,586 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2
05:15:00,586 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2
05:15:00,586 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1
05:15:00,586 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader
05:15:00,587 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2]
05:15:00,587 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1
05:15:00,587 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1
05:15:00,587 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy
05:15:00,587 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2
05:15:00,587 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior468#772282104]
05:15:00,598 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate469]
05:15:00,598 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer470#772693358]
05:15:00,598 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer471#-91016760]
05:15:00,600 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:00,600 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:00,600 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:00,600 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2
05:15:00,600 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
05:15:00,600 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false]
05:15:00,601 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior472#-1636926823]
05:15:00,601 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate473]
05:15:00,601 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer474#-1988859316]
05:15:00,603 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:00,603 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:00,603 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3
05:15:00,603 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
05:15:00,603 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]]]
05:15:00,603 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower
05:15:00,603 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy
05:15:00,603 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2
05:15:00,603 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#1942376334]
05:15:00,604 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476]
05:15:00,606 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:00,606 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:00,606 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001
05:15:00,607 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001
05:15:00,607 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
05:15:00,607 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true]
05:15:00,607 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#1872538862]
05:15:00,608 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478]
05:15:00,608 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer479#-524702338]
05:15:00,609 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:00,609 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:00,609 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:00,609 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior480#843914893]
05:15:00,609 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate481]
05:15:00,611 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2]
05:15:00,611 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2
05:15:00,611 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3
05:15:00,611 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2
05:15:01,14 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1
05:15:01,14 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1
05:15:01,14 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1
05:15:01,14 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1
05:15:01,15 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4]
05:15:01,15 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1
05:15:01,15 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1
05:15:01,15 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1
05:15:01,15 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1
05:15:01,15 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy
05:15:01,15 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1
05:15:01,15 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior482#1840471380]
05:15:01,17 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate483]
05:15:01,17 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer484#-1265442330]
05:15:01,17 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer485#-1283619563]
05:15:01,17 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer486#898922943]
05:15:01,18 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer487#-272683776]
05:15:01,19 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:01,19 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4
05:15:01,20 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4]
05:15:01,20 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3
05:15:01,20 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4]
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1
05:15:01,21 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1
05:15:01,21 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy
05:15:01,21 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3
05:15:01,21 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior488#-1451384738]
05:15:01,22 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate489]
05:15:01,22 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer490#-1053144701]
05:15:01,22 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer491#2040712479]
05:15:01,22 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer492#-1183136070]
05:15:01,22 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer493#-893860605]
05:15:01,23 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:01,23 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:01,23 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:01,23 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior494#-1915135654]
05:15:01,24 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate495]
05:15:01,25 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:01,25 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:01,25 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:01,25 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout
05:15:01,25 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: []
05:15:01,25 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy
05:15:01,25 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2
05:15:01,25 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior496#355753940]
05:15:01,26 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate497]
05:15:01,27 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:01,27 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:01,27 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:01,27 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
05:15:01,27 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2
05:15:01,27 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior498#211430312]
05:15:01,28 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate499]
05:15:01,28 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer500#132601434]
05:15:01,29 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:01,29 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1
05:15:01,29 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2]
05:15:01,29 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:01,29 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1
05:15:01,29 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2
05:15:01,29 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2
05:15:01,29 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1
05:15:01,29 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2]
05:15:01,29 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1
05:15:01,29 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1
05:15:01,29 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy
05:15:01,29 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2
05:15:01,29 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior501#253334186]
05:15:01,30 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate502]
05:15:01,30 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer503#-2114555956]
05:15:01,30 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer504#663637288]
05:15:01,32 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:01,32 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:01,32 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:01,32 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior505#-47857547]
05:15:01,32 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate506]
05:15:01,33 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:01,33 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:01,33 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:01,33 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1
05:15:01,33 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
05:15:01,33 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true]
05:15:01,33 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior507#850301519]
05:15:01,33 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate508]
05:15:01,34 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:01,34 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:01,34 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:01,34 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1
05:15:01,34 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
05:15:01,34 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false]
05:15:01,34 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior509#-673759900]
05:15:01,35 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate510]
05:15:01,35 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:01,35 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:01,35 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:01,35 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
05:15:01,35 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
05:15:01,36 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy
05:15:01,36 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100
05:15:01,36 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:01,36 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:01,36 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
05:15:01,36 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
05:15:01,36 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100
05:15:01,36 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:01,36 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:01,36 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2
05:15:01,36 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
05:15:01,36 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
05:15:01,36 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true]
05:15:01,36 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100
05:15:01,36 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:01,36 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2
05:15:01,36 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2
05:15:01,36 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
05:15:01,36 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100
05:15:01,36 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior511#1182193842]
05:15:01,36 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate512]
05:15:01,37 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1
05:15:01,37 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: []
05:15:01,37 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2
05:15:01,37 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior513#420588770]
05:15:01,37 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate514]
05:15:01,38 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:01,38 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:01,38 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001
05:15:01,38 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
05:15:01,38 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001
05:15:01,38 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior515#-1899493775]
05:15:01,39 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate516]
05:15:01,39 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1
05:15:01,39 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: []
05:15:01,39 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001
05:15:01,39 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001
05:15:01,39 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
05:15:01,39 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false]
05:15:01,39 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior517#1538021586]
05:15:01,40 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate518]
05:15:01,40 PM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason]
[INFO] [10/16/2024 17:15:01.040] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason]
[WARN] [10/16/2024 17:15:01.041] [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.68:25520)
[INFO] [akkaDeadLetter][10/16/2024 17:15:01.041] [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#2077153815] 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'.
05:15:01,41 PM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRef -  akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#2077153815] 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/16/2024 17:15:01.041] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.68:25520] - Exiting completed
05:15:01,41 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.68:25520] - Exiting completed
[INFO] [10/16/2024 17:15:01.041] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.68:25520] - Shutting down...
05:15:01,41 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.68:25520] - Shutting down...
05:15:01,42 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.68:25520] - Successfully shut down
05:15:01,42 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon.
05:15:01,42 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports.
[INFO] [10/16/2024 17:15:01.041] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.68:25520] - Successfully shut down
[INFO] [10/16/2024 17:15:01.042] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.68:25520/system/remoting-terminator] Shutting down remote daemon.
[INFO] [10/16/2024 17:15:01.042] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.68:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports.
[INFO] [10/16/2024 17:15:01.044] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.68:25520/system/remoting-terminator] Remoting shut down.
05:15:01,44 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.
[DEBUG] [10/16/2024 17:15:01.044] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger