[DEBUG] [11/02/2024 20:41:12.128] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 08:41:12,128 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/02/2024 20:41:12.129] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [11/02/2024 20:41:12.129] [main] [EventStream(pekko://test)] Default Loggers started 08:41:12,139 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.115:17355] with UID [-6263680546480913312] [INFO] [11/02/2024 20:41:12.139] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.115:17355] with UID [-6263680546480913312] 08:41:12,140 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [11/02/2024 20:41:12.140] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [11/02/2024 20:41:12.142] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [11/02/2024 20:41:12.142] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - Started up successfully 08:41:12,142 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 08:41:12,142 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - Started up successfully [INFO] [11/02/2024 20:41:12.143] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [11/02/2024 20:41:12.143] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:41:12,144 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 08:41:12,144 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:41:12,254 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,254 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,254 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,255 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 08:41:12,255 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 08:41:12,256 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:41:12,256 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 08:41:12,256 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#1603147010] 08:41:12,267 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate457] 08:41:12,268 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer458#1004067347] 08:41:12,371 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,372 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 08:41:12,372 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,372 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:41:12,372 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 08:41:12,372 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:41:12,372 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:41:12,372 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#316415705] 08:41:12,383 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate460] 08:41:12,383 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer461#-521966006] 08:41:12,385 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,385 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:41:12,386 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:41:12,386 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 08:41:12,386 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 08:41:12,386 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-1251200031] 08:41:12,387 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate463] 08:41:12,387 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer464#-1754708300] 08:41:12,389 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,389 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,389 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,389 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 08:41:12,390 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=[]] 08:41:12,390 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:41:12,390 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:41:12,390 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:41:12,390 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#1871575546] 08:41:12,391 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate466] 08:41:12,392 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer467#-908316480] 08:41:12,394 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,394 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 08:41:12,395 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 08:41:12,395 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,395 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:41:12,395 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 08:41:12,395 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 08:41:12,395 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:41:12,395 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 08:41:12,395 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 08:41:12,395 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:41:12,395 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:41:12,395 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:41:12,395 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 08:41:12,395 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#170849759] 08:41:12,396 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate469] 08:41:12,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer470#-622272713] 08:41:12,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer471#-1130909299] 08:41:12,397 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,397 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,397 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,398 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 08:41:12,398 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 08:41:12,398 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 08:41:12,398 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#1311057578] 08:41:12,398 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate473] 08:41:12,399 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer474#-777060075] 08:41:12,400 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,400 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,400 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:41:12,400 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 08:41:12,400 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]]] 08:41:12,400 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:41:12,400 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:41:12,400 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:41:12,400 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-1986070935] 08:41:12,401 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate476] 08:41:12,403 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,403 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,403 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:41:12,403 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:41:12,403 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 08:41:12,403 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 08:41:12,403 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#136801205] 08:41:12,404 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate478] 08:41:12,404 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer479#525452030] 08:41:12,405 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,405 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,405 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,405 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-1379684029] 08:41:12,405 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate481] 08:41:12,408 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 08:41:12,408 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 08:41:12,408 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 08:41:12,408 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 08:41:12,815 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 08:41:12,815 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 08:41:12,815 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 08:41:12,815 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:41:12,815 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 08:41:12,815 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:41:12,816 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:41:12,816 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:41:12,816 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:41:12,816 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:41:12,816 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 08:41:12,816 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#-518127874] 08:41:12,818 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate483] 08:41:12,818 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer484#-1450765348] 08:41:12,818 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer485#-771312136] 08:41:12,819 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer486#-289647702] 08:41:12,819 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer487#1165227356] 08:41:12,821 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,821 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 08:41:12,823 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 08:41:12,823 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:41:12,823 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 08:41:12,823 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 08:41:12,823 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 08:41:12,823 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 08:41:12,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 08:41:12,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 08:41:12,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 08:41:12,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:41:12,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 08:41:12,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 08:41:12,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 08:41:12,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:41:12,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:41:12,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:41:12,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:41:12,824 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:41:12,824 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:41:12,824 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#1736529604] 08:41:12,825 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate489] 08:41:12,825 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer490#1751333863] 08:41:12,825 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer491#1336965036] 08:41:12,826 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer492#568685749] 08:41:12,826 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer493#80311179] 08:41:12,827 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,827 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,827 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,827 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#1469979463] 08:41:12,827 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate495] 08:41:12,828 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,828 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,828 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,828 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 08:41:12,828 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 08:41:12,828 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:41:12,828 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:41:12,828 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#-1574343486] 08:41:12,829 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate497] 08:41:12,830 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,830 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,830 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,830 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 08:41:12,830 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 08:41:12,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#580918619] 08:41:12,831 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate499] 08:41:12,831 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer500#2041285016] 08:41:12,832 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,832 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 08:41:12,832 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 08:41:12,832 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,832 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:41:12,832 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 08:41:12,832 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 08:41:12,832 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:41:12,832 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 08:41:12,832 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:41:12,832 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:41:12,832 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:41:12,832 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:41:12,832 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#1862693030] 08:41:12,833 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate502] 08:41:12,833 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer503#1460059800] 08:41:12,833 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer504#1645767179] 08:41:12,834 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,834 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,834 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,834 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-1812820356] 08:41:12,835 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate506] 08:41:12,836 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,836 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,836 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,836 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 08:41:12,836 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 08:41:12,836 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 08:41:12,836 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#114672159] 08:41:12,837 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate508] 08:41:12,838 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,838 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,838 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,838 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 08:41:12,838 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 08:41:12,838 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 08:41:12,838 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#750927935] 08:41:12,838 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate510] 08:41:12,839 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,839 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,839 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,839 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 08:41:12,839 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 08:41:12,839 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:41:12,839 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:41:12,839 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,839 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,839 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 08:41:12,839 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 08:41:12,839 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:41:12,839 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,839 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,839 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 08:41:12,839 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 08:41:12,839 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 08:41:12,839 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 08:41:12,839 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:41:12,840 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,840 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:41:12,840 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 08:41:12,840 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 08:41:12,840 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:41:12,840 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#-1062655168] 08:41:12,840 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate512] 08:41:12,841 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 08:41:12,841 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 08:41:12,841 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 08:41:12,841 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-1658839964] 08:41:12,841 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate514] 08:41:12,842 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,842 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,842 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:41:12,842 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 08:41:12,842 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 08:41:12,843 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#210089675] 08:41:12,843 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate516] 08:41:12,844 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:41:12,844 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:41:12,844 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:41:12,844 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:41:12,844 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 08:41:12,844 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 08:41:12,844 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#614708983] 08:41:12,844 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate518] 08:41:12,845 PM [test-pekko.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:41:12,846 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - Exiting completed 08:41:12,847 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - Shutting down... 08:41:12,847 PM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#758942331] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [11/02/2024 20:41:12.845] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:41:12,847 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - Successfully shut down [WARN] [11/02/2024 20:41:12.847] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.115:17355) [INFO] [11/02/2024 20:41:12.846] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - Exiting completed [INFO] [11/02/2024 20:41:12.846] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - Shutting down... [INFO] [pekkoDeadLetter][11/02/2024 20:41:12.846] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#758942331] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [11/02/2024 20:41:12.847] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - Successfully shut down [INFO] [11/02/2024 20:41:12.848] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.115:17355/system/remoting-terminator] Shutting down remote daemon. 08:41:12,848 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [11/02/2024 20:41:12.848] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.115:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 08:41:12,848 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports.