[DEBUG] [10/28/2024 04:45:42.339] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:45:42,340 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/28/2024 04:45:42.340] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [10/28/2024 04:45:42.340] [main] [EventStream(pekko://test)] Default Loggers started 04:45:42,348 AM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.117:17355] with UID [-3689038645322779028] [INFO] [10/28/2024 04:45:42.348] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.117:17355] with UID [-3689038645322779028] 04:45:42,349 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [10/28/2024 04:45:42.349] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - Starting up, Pekko version [1.0.3] ... 04:45:42,351 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:45:42,351 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - Started up successfully [INFO] [10/28/2024 04:45:42.351] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [10/28/2024 04:45:42.351] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - Started up successfully [INFO] [10/28/2024 04:45:42.353] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [10/28/2024 04:45:42.353] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:45:42,354 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:45:42,354 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:45:42,363 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:42,363 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:42,363 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:42,363 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 04:45:42,363 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 5 in "AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 04:45:42,363 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:45:42,363 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 04:45:42,364 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-1904206924] 04:45:42,374 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate457] 04:45:42,374 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer458#1327757829] 04:45:42,376 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:42,376 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 04:45:42,376 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:42,376 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 04:45:42,376 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 04:45:42,376 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 04:45:42,376 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 04:45:42,377 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#1133181308] 04:45:42,387 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate460] 04:45:42,388 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer461#1039391629] 04:45:42,390 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:42,390 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:42,390 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:45:42,390 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 04:45:42,391 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 04:45:42,391 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 04:45:42,391 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-1972448957] 04:45:42,402 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate463] 04:45:42,402 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer464#-712165046] 04:45:42,505 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:42,505 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:42,505 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:42,505 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 04:45:42,506 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 04:45:42,506 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:45:42,506 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:45:42,506 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:45:42,506 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-908676068] 04:45:42,517 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate466] 04:45:42,517 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer467#1365962600] 04:45:42,520 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:42,520 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 04:45:42,520 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:45:42,520 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:42,520 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 04:45:42,521 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 04:45:42,521 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 04:45:42,521 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 04:45:42,521 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 04:45:42,521 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 04:45:42,521 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:45:42,521 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:45:42,521 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:45:42,521 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 04:45:42,521 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-182321376] 04:45:42,532 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate469] 04:45:42,532 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer470#-2078164374] 04:45:42,532 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer471#-1140075730] 04:45:42,533 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:42,533 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:42,533 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:42,534 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 04:45:42,534 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 04:45:42,534 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 04:45:42,534 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#1384883699] 04:45:42,545 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate473] 04:45:42,545 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer474#1361573053] 04:45:42,547 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:42,547 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:42,547 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 04:45:42,547 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]], my term is 2 04:45:42,547 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 04:45:42,547 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:45:42,547 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:45:42,547 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:45:42,547 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-497793976] 04:45:42,558 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate476] 04:45:42,561 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:42,561 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:42,561 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:45:42,562 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 04:45:42,562 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 04:45:42,562 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 04:45:42,562 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-155024985] 04:45:42,573 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate478] 04:45:42,573 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer479#-1621618738] 04:45:42,575 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:42,575 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:42,575 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:42,575 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#606748838] 04:45:42,586 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate481] 04:45:42,593 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 04:45:42,593 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 04:45:42,593 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 04:45:42,593 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 04:45:42,995 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 04:45:42,995 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 04:45:42,996 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 04:45:42,996 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 04:45:42,996 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:45:42,996 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:45:42,996 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:45:42,996 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:45:42,996 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:45:42,996 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:45:42,997 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 04:45:42,997 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#-449275381] 04:45:43,8 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate483] 04:45:43,8 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer484#963874510] 04:45:43,8 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer485#202754467] 04:45:43,8 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer486#1668411150] 04:45:43,8 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer487#-513148776] 04:45:43,12 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:43,12 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 04:45:43,14 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 04:45:43,14 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 04:45:43,14 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 04:45:43,14 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 04:45:43,14 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 04:45:43,14 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 04:45:43,14 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 04:45:43,14 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 04:45:43,14 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 04:45:43,14 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 04:45:43,14 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 04:45:43,14 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 04:45:43,14 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:45:43,15 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:45:43,15 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:45:43,15 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:45:43,15 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:45:43,15 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:45:43,15 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 04:45:43,15 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#-1480011202] 04:45:43,26 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate489] 04:45:43,26 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer490#72795787] 04:45:43,26 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer491#-354381058] 04:45:43,26 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer492#796690223] 04:45:43,26 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer493#66725454] 04:45:43,28 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:43,28 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:43,28 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:43,29 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#807699331] 04:45:43,39 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate495] 04:45:43,41 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:43,41 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:43,41 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:43,41 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 04:45:43,41 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 04:45:43,41 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:45:43,41 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:45:43,41 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#2092929047] 04:45:43,52 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate497] 04:45:43,54 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:43,54 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:43,54 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:43,54 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 04:45:43,54 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 04:45:43,54 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#604384491] 04:45:43,65 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate499] 04:45:43,65 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer500#1543966351] 04:45:43,67 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:43,67 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 04:45:43,68 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:45:43,68 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:43,68 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 04:45:43,68 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 04:45:43,68 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 04:45:43,68 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 04:45:43,68 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 04:45:43,68 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:45:43,68 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:45:43,68 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:45:43,68 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:45:43,68 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#1204470907] 04:45:43,79 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate502] 04:45:43,79 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer503#-939167601] 04:45:43,79 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer504#1721056732] 04:45:43,80 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:43,80 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:43,80 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:43,80 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-588199936] 04:45:43,91 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate506] 04:45:43,93 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:43,93 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:43,93 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:43,93 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 04:45:43,93 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 04:45:43,93 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 04:45:43,93 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#1919368223] 04:45:43,104 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate508] 04:45:43,106 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:43,106 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:43,106 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:43,106 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 04:45:43,106 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 04:45:43,106 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 04:45:43,106 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#1333836627] 04:45:43,117 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate510] 04:45:43,118 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:43,118 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:43,118 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:43,118 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 04:45:43,118 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 04:45:43,118 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:45:43,118 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:45:43,118 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:43,118 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:43,118 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5], my term is 2 04:45:43,118 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5]" message is greater than Candidate's term 2 - switching to Follower 04:45:43,118 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:45:43,118 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:43,118 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:43,118 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 04:45:43,118 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100]" message is greater than Candidate's term 2 - switching to Follower 04:45:43,118 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100] - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 04:45:43,118 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 04:45:43,118 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:45:43,118 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:43,118 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:45:43,118 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 04:45:43,118 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 04:45:43,118 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:45:43,118 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#-1575552615] 04:45:43,129 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate512] 04:45:43,131 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 04:45:43,131 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 04:45:43,131 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 04:45:43,131 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#1966170692] 04:45:43,142 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate514] 04:45:43,143 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:43,143 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:43,143 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:45:43,143 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 1001 04:45:43,143 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 04:45:43,144 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#-263394342] 04:45:43,154 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate516] 04:45:43,156 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:45:43,156 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:45:43,156 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:45:43,156 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 04:45:43,156 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 04:45:43,156 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 04:45:43,156 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#946421444] 04:45:43,167 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate518] [INFO] [10/28/2024 04:45:43.168] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:45:43,168 AM [test-pekko.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:45:43,169 AM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1382477412] 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'. [WARN] [10/28/2024 04:45:43.169] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.117:17355) [INFO] [pekkoDeadLetter][10/28/2024 04:45:43.169] [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#1382477412] 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] [10/28/2024 04:45:43.170] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - Exiting completed [INFO] [10/28/2024 04:45:43.170] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - Shutting down... 04:45:43,170 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - Exiting completed 04:45:43,170 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - Shutting down... [INFO] [10/28/2024 04:45:43.170] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - Successfully shut down 04:45:43,170 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - Successfully shut down [INFO] [10/28/2024 04:45:43.172] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.117:17355/system/remoting-terminator] Shutting down remote daemon. 04:45:43,172 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [10/28/2024 04:45:43.172] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.117:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:45:43,172 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 04:45:43,175 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [10/28/2024 04:45:43.175] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.117:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [10/28/2024 04:45:43.175] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger