[DEBUG] [12/09/2024 23:01:33.518] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 11:01:33,519 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [12/09/2024 23:01:33.519] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [12/09/2024 23:01:33.519] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [12/09/2024 23:01:33.528] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.152:17355] with UID [-9037875333023638888] 11:01:33,529 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.152:17355] with UID [-9037875333023638888] [INFO] [12/09/2024 23:01:33.529] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.152:17355] - Starting up, Pekko version [1.0.3] ... 11:01:33,529 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.152:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [12/09/2024 23:01:33.532] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.152:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [12/09/2024 23:01:33.532] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.152:17355] - Started up successfully 11:01:33,532 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.152:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 11:01:33,532 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.152:17355] - Started up successfully 11:01:33,533 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.152:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 11:01:33,533 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.152:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [12/09/2024 23:01:33.533] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.152:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [12/09/2024 23:01:33.533] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.152:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 11:01:33,544 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:33,544 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:33,544 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:33,545 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries{term=5, leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}, my term is 2 11:01:33,545 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 5 in "AppendEntries{term=5, leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than Candidate's term 2 - switching to Follower 11:01:33,545 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:33,545 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 11:01:33,545 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-1948974480] 11:01:33,556 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate457] 11:01:33,556 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer458#838518724] 11:01:33,557 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:33,558 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 11:01:33,558 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:33,558 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 11:01:33,558 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:01:33,558 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:01:33,558 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 11:01:33,558 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#1293936273] 11:01:33,569 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate460] 11:01:33,569 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer461#1447755317] 11:01:33,570 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:33,570 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:33,570 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:01:33,570 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 11:01:33,570 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 11:01:33,570 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 11:01:33,570 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#959325011] 11:01:33,581 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate463] 11:01:33,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer464#1225377251] 11:01:33,583 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:33,583 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:33,583 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:33,583 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries{term=2, leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}, my term is 2 11:01:33,583 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries{term=2, leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]} 11:01:33,583 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:01:33,584 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:33,584 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:01:33,584 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#1200775758] 11:01:33,595 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate466] 11:01:33,595 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer467#1752390534] 11:01:33,596 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:33,596 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 11:01:33,597 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:01:33,597 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:33,597 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 11:01:33,597 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 11:01:33,597 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 11:01:33,597 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 11:01:33,597 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 11:01:33,598 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 11:01:33,598 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:01:33,598 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:01:33,598 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:33,598 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 11:01:33,598 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-764379369] 11:01:33,608 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate469] 11:01:33,609 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer470#829500551] 11:01:33,609 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer471#-622113123] 11:01:33,610 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:33,611 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:33,611 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:33,611 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0}, my term is 2 11:01:33,611 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 11:01:33,611 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 11:01:33,611 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#-1490162696] 11:01:33,622 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate473] 11:01:33,622 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer474#312433858] 11:01:33,623 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:33,624 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:33,624 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:01:33,624 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]}, my term is 2 11:01:33,624 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 11:01:33,624 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:01:33,624 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:33,624 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:01:33,624 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#1600509329] 11:01:33,635 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate476] 11:01:33,638 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:33,638 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:33,638 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:01:33,639 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 11:01:33,639 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 11:01:33,639 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=true} 11:01:33,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#1124670696] 11:01:33,649 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate478] 11:01:33,649 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer479#-1977029549] 11:01:33,651 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:33,651 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:33,651 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:33,651 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#261139507] 11:01:33,662 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate481] 11:01:33,741 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 11:01:33,741 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 11:01:33,741 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer3 11:01:33,741 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer2 11:01:34,143 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 1 11:01:34,143 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 11:01:34,143 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 1 11:01:34,143 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 11:01:34,143 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:01:34,143 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:01:34,143 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:01:34,143 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:01:34,144 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:01:34,144 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:34,144 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 11:01:34,144 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#689684251] 11:01:34,155 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate483] 11:01:34,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer484#-1214608218] 11:01:34,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer485#-1876194322] 11:01:34,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer486#-1039550454] 11:01:34,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer487#1103830120] 11:01:34,157 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:34,157 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 11:01:34,159 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 11:01:34,159 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:01:34,159 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer1 11:01:34,159 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer3 11:01:34,159 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer2 11:01:34,159 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer4 11:01:34,159 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 3 11:01:34,159 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 11:01:34,159 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 11:01:34,159 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 11:01:34,159 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 11:01:34,159 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 2 11:01:34,159 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:01:34,160 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:01:34,160 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:01:34,160 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:01:34,160 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:01:34,160 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:34,160 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:01:34,160 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#2101526722] 11:01:34,170 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate489] 11:01:34,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer490#1818164064] 11:01:34,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer491#-1259071249] 11:01:34,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer492#1804174401] 11:01:34,174 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer493#1750321998] 11:01:34,176 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:34,176 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:34,176 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:34,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#1249872034] 11:01:34,187 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate495] 11:01:34,189 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:34,189 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:34,189 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:34,189 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:01:34,189 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 11:01:34,189 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:34,189 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:01:34,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#881569427] 11:01:34,199 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate497] 11:01:34,202 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:34,202 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:34,202 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:34,202 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries{term=1, leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}, my term is 2 11:01:34,202 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 11:01:34,204 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-96240999] 11:01:34,215 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate499] 11:01:34,215 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer500#-307200143] 11:01:34,217 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:34,217 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 11:01:34,217 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:01:34,217 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:34,217 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 11:01:34,217 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 11:01:34,222 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 11:01:34,222 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 11:01:34,222 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 11:01:34,222 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:01:34,222 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:01:34,223 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:34,223 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:01:34,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#1350124478] 11:01:34,233 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate502] 11:01:34,233 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer503#579596030] 11:01:34,234 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer504#1894525108] 11:01:34,336 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:34,336 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:34,336 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:34,337 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-1171648803] 11:01:34,347 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate506] 11:01:34,350 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:34,350 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:34,350 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:34,350 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1 11:01:34,350 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 11:01:34,350 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 11:01:34,350 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#140316699] 11:01:34,361 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate508] 11:01:34,463 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:34,463 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:34,463 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:34,463 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1}, my term is 1 11:01:34,463 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 11:01:34,463 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 11:01:34,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#-681685719] 11:01:34,474 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate510] 11:01:34,577 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:34,577 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:34,577 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:34,577 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}, my term is 2 11:01:34,577 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than Candidate's term 2 - switching to Follower 11:01:34,577 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:34,577 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:01:34,577 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:34,577 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:34,577 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 11:01:34,577 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 11:01:34,577 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:01:34,577 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:34,577 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:34,577 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}, my term is 2 11:01:34,577 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 11:01:34,577 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 11:01:34,577 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 11:01:34,577 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:01:34,577 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:34,577 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:34,577 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=100, voteGranted=false}, my term is 2 11:01:34,577 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 11:01:34,577 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:01:34,578 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#606974862] 11:01:34,588 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate512] 11:01:34,590 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 11:01:34,590 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 11:01:34,590 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 11:01:34,590 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-1163150263] 11:01:34,591 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate514] 11:01:34,593 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:34,593 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:34,593 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:01:34,593 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}, my term is 1001 11:01:34,593 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 11:01:34,593 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#-518350940] 11:01:34,594 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate516] 11:01:34,595 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:34,595 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:34,595 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:01:34,595 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 11:01:34,595 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 11:01:34,595 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 11:01:34,595 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#-519250035] 11:01:34,596 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate518] 11:01:34,597 PM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [12/09/2024 23:01:34.597] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [12/09/2024 23:01:34.598] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.152:17355) [INFO] [pekkoDeadLetter][12/09/2024 23:01:34.598] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1495039839] 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'. 11:01:34,598 PM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1495039839] 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] [12/09/2024 23:01:34.599] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.152:17355] - Exiting completed 11:01:34,599 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.152:17355] - Exiting completed [INFO] [12/09/2024 23:01:34.599] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.152:17355] - Shutting down... 11:01:34,600 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.152:17355] - Shutting down... [INFO] [12/09/2024 23:01:34.599] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.152:17355] - Successfully shut down 11:01:34,601 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.152:17355] - Successfully shut down 11:01:34,601 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [12/09/2024 23:01:34.601] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.152:17355/system/remoting-terminator] Shutting down remote daemon. 11:01:34,601 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [12/09/2024 23:01:34.601] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.152:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 11:01:34,603 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [12/09/2024 23:01:34.603] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.152:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [12/09/2024 23:01:34.604] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger