[DEBUG] [01/30/2024 15:48:50.084] [main] [EventStream(akka://test)] logger log1-TestEventListener started 03:48:50,85 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [01/30/2024 15:48:50.086] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [01/30/2024 15:48:50.086] [main] [EventStream(akka://test)] Default Loggers started 03:48:50,120 PM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.59:25520] with UID [-1483735058989987994] [INFO] [01/30/2024 15:48:50.118] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.59:25520] with UID [-1483735058989987994] [INFO] [01/30/2024 15:48:50.120] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.59:25520] - Starting up, Akka version [2.6.21] ... 03:48:50,120 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.59:25520] - Starting up, Akka version [2.6.21] ... 03:48:50,138 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.59:25520] - Registered cluster JMX MBean [akka:type=Cluster] 03:48:50,138 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.59:25520] - Started up successfully 03:48:50,140 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.59:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 03:48:50,140 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.59:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [01/30/2024 15:48:50.127] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.59:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [01/30/2024 15:48:50.127] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.59:25520] - Started up successfully [INFO] [01/30/2024 15:48:50.140] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.59:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [01/30/2024 15:48:50.140] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.59:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 03:48:50,276 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:50,295 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:50,295 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:50,296 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 03:48:50,296 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 03:48:50,296 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:48:50,296 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 03:48:50,296 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#208827578] 03:48:50,308 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 03:48:50,309 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-856630116] 03:48:50,413 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:50,414 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 03:48:50,414 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:50,414 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 03:48:50,414 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 03:48:50,414 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 03:48:50,414 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 03:48:50,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#1309636052] 03:48:50,426 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 03:48:50,426 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#1954731079] 03:48:50,531 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:50,531 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:50,531 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 03:48:50,533 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 03:48:50,533 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 03:48:50,533 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 03:48:50,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#386926737] 03:48:50,545 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 03:48:50,546 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#-346183823] 03:48:50,650 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:50,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:50,650 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:50,652 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 03:48:50,652 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=[]] 03:48:50,652 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 03:48:50,652 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:48:50,652 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 03:48:50,653 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#-1907971207] 03:48:50,664 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 03:48:50,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#-1422837245] 03:48:50,767 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:50,767 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 03:48:50,770 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 03:48:50,770 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:50,770 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 03:48:50,770 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 03:48:50,770 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 03:48:50,770 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 03:48:50,771 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 03:48:50,773 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 03:48:50,774 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 03:48:50,774 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 03:48:50,774 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:48:50,774 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 03:48:50,774 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#-1014400388] 03:48:50,786 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 03:48:50,786 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#-1417426846] 03:48:50,787 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#1732209577] 03:48:50,892 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:50,892 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:50,892 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:50,893 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 03:48:50,893 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 03:48:50,893 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 03:48:50,893 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#-388853798] 03:48:50,905 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 03:48:50,905 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#1354504566] 03:48:51,10 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,10 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,10 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 03:48:51,10 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 03:48:51,10 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]]] 03:48:51,10 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 03:48:51,10 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:48:51,10 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 03:48:51,11 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#1507826812] 03:48:51,22 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 03:48:51,30 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,30 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,30 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 03:48:51,31 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 03:48:51,31 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 03:48:51,31 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 03:48:51,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#-169097451] 03:48:51,42 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 03:48:51,43 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#1163254879] 03:48:51,46 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,46 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,46 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:51,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#704133059] 03:48:51,57 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 03:48:51,185 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 03:48:51,187 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 03:48:51,187 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 03:48:51,187 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 03:48:51,592 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 03:48:51,592 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 03:48:51,593 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 03:48:51,593 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 03:48:51,593 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 03:48:51,593 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 03:48:51,594 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 03:48:51,594 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 03:48:51,595 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 03:48:51,595 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:48:51,595 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 03:48:51,595 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#1506917753] 03:48:51,607 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 03:48:51,607 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#868433255] 03:48:51,608 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#578070731] 03:48:51,608 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#1836576441] 03:48:51,608 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-130914570] 03:48:51,611 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,611 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 03:48:51,617 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 03:48:51,617 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 03:48:51,617 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 03:48:51,617 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 03:48:51,617 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 03:48:51,617 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 03:48:51,618 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 03:48:51,618 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 03:48:51,618 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 03:48:51,618 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 03:48:51,618 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 03:48:51,618 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 03:48:51,618 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 03:48:51,618 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 03:48:51,619 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 03:48:51,619 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 03:48:51,619 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 03:48:51,619 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:48:51,619 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 03:48:51,619 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#1895935609] 03:48:51,630 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 03:48:51,633 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#1058879105] 03:48:51,633 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#1351771591] 03:48:51,633 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#69310981] 03:48:51,634 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-887004949] 03:48:51,638 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,638 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,638 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:51,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#-273940234] 03:48:51,650 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 03:48:51,653 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,653 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,653 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:51,653 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 03:48:51,654 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 03:48:51,654 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:48:51,654 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 03:48:51,654 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#-609023957] 03:48:51,665 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 03:48:51,669 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,669 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:51,670 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 03:48:51,670 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 03:48:51,670 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#256398567] 03:48:51,682 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 03:48:51,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#510969098] 03:48:51,685 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,685 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 03:48:51,686 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 03:48:51,686 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:51,686 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 03:48:51,686 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 03:48:51,687 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 03:48:51,687 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 03:48:51,687 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 03:48:51,687 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 03:48:51,687 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 03:48:51,687 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:48:51,687 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 03:48:51,687 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#-971386446] 03:48:51,699 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 03:48:51,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#-678806944] 03:48:51,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#-2132740850] 03:48:51,702 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,702 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,702 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:51,703 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#1323750921] 03:48:51,714 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 03:48:51,717 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,717 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,717 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:51,717 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 03:48:51,717 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 03:48:51,717 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 03:48:51,717 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-764215018] 03:48:51,729 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 03:48:51,731 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,731 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,731 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:51,731 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 03:48:51,731 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 03:48:51,731 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 03:48:51,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#1044091720] 03:48:51,743 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 03:48:51,746 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,746 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,746 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:51,746 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 03:48:51,746 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 03:48:51,746 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:48:51,746 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 03:48:51,746 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,746 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:51,747 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 03:48:51,747 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 03:48:51,747 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 03:48:51,747 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,747 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:51,747 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 03:48:51,747 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 03:48:51,747 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 03:48:51,747 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 03:48:51,747 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 03:48:51,747 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,747 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:48:51,747 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 03:48:51,747 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 03:48:51,747 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 03:48:51,747 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-1985979052] 03:48:51,759 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 03:48:51,760 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 03:48:51,760 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 03:48:51,760 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 03:48:51,761 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#-2078805530] 03:48:51,771 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 03:48:51,774 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,775 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,775 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 03:48:51,775 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 03:48:51,775 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 03:48:51,775 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#1234982164] 03:48:51,786 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 03:48:51,789 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:48:51,789 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:48:51,789 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 03:48:51,789 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 03:48:51,789 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 03:48:51,789 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 03:48:51,790 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#1570555199] 03:48:51,801 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 03:48:51,802 PM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [01/30/2024 15:48:51.802] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [01/30/2024 15:48:51.805] [test-akka.actor.default-dispatcher-12] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.59:25520) [INFO] [01/30/2024 15:48:51.805] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.59:25520] - Exiting completed [INFO] [01/30/2024 15:48:51.805] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.59:25520] - Shutting down... [INFO] [01/30/2024 15:48:51.805] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.59:25520] - Successfully shut down [INFO] [akkaDeadLetter][01/30/2024 15:48:51.806] [test-akka.actor.default-dispatcher-12] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1830080359] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 03:48:51,807 PM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.170.59:25520] - Exiting completed 03:48:51,807 PM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.170.59:25520] - Shutting down... 03:48:51,807 PM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.170.59:25520] - Successfully shut down 03:48:51,807 PM [test-akka.actor.default-dispatcher-12] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1830080359] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [01/30/2024 15:48:51.812] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.59:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [01/30/2024 15:48:51.812] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.59:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 03:48:51,812 PM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 03:48:51,812 PM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 03:48:51,816 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [01/30/2024 15:48:51.816] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.59:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [01/30/2024 15:48:51.817] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger