01:13:58,999 AM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [04/13/2024 01:13:58.998] [main] [EventStream(akka://test)] logger log1-TestEventListener started [DEBUG] [04/13/2024 01:13:59.000] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [04/13/2024 01:13:59.000] [main] [EventStream(akka://test)] Default Loggers started [INFO] [04/13/2024 01:13:59.039] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.74:25520] with UID [7478377667479558512] 01:13:59,40 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.74:25520] with UID [7478377667479558512] [INFO] [04/13/2024 01:13:59.041] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.74:25520] - Starting up, Akka version [2.6.21] ... 01:13:59,42 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.74:25520] - Starting up, Akka version [2.6.21] ... 01:13:59,52 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.74:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:13:59,52 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.74:25520] - Started up successfully [INFO] [04/13/2024 01:13:59.047] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.74:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [04/13/2024 01:13:59.047] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.74:25520] - Started up successfully [INFO] [04/13/2024 01:13:59.066] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.74:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [04/13/2024 01:13:59.066] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.74:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:13:59,68 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.74:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:13:59,68 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.74:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:13:59,209 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:59,231 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:59,231 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:59,232 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 01:13:59,232 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 01:13:59,232 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:59,232 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 01:13:59,233 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#-97900179] 01:13:59,244 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 01:13:59,244 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-1202158502] 01:13:59,349 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:59,350 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 01:13:59,350 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:59,350 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:13:59,351 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:13:59,351 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:13:59,351 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:13:59,351 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#2132440998] 01:13:59,363 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 01:13:59,363 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#-1182941914] 01:13:59,468 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:59,468 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:59,468 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:13:59,470 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:13:59,470 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 01:13:59,470 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:13:59,470 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#-1949305032] 01:13:59,482 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 01:13:59,483 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#-596303673] 01:13:59,487 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:59,487 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:59,487 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:59,488 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 01:13:59,488 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=[]] 01:13:59,488 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:13:59,488 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:59,489 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:13:59,489 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#-904796708] 01:13:59,501 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 01:13:59,501 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#-791050856] 01:13:59,607 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:59,607 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 01:13:59,609 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:13:59,609 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:59,609 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:13:59,609 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:13:59,609 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:13:59,609 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:13:59,609 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 01:13:59,611 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 01:13:59,611 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:13:59,612 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:13:59,612 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:59,612 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 01:13:59,612 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#-413972835] 01:13:59,623 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 01:13:59,624 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#536144005] 01:13:59,624 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#918995641] 01:13:59,629 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:59,630 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:59,630 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:59,634 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 01:13:59,634 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 01:13:59,634 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 01:13:59,634 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#-360748968] 01:13:59,646 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 01:13:59,646 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#-1501800680] 01:13:59,651 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:59,651 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:59,651 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:13:59,651 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 01:13:59,651 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]]] 01:13:59,651 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:13:59,651 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:59,651 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:13:59,652 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#1483383125] 01:13:59,663 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 01:13:59,669 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:59,669 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:59,669 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:13:59,670 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:13:59,670 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 01:13:59,670 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 01:13:59,670 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#981705388] 01:13:59,682 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 01:13:59,682 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#-971048417] 01:13:59,787 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:59,787 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:59,787 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:59,787 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#-539823266] 01:13:59,799 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 01:13:59,933 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 01:13:59,936 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 01:13:59,936 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 01:13:59,937 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 01:14:00,344 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 01:14:00,344 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:14:00,344 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 01:14:00,344 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:14:00,345 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:14:00,345 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:14:00,345 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:14:00,346 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:14:00,346 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:14:00,346 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:14:00,347 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 01:14:00,347 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#916919455] 01:14:00,358 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 01:14:00,359 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#-88763150] 01:14:00,359 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#-1211077478] 01:14:00,359 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#1301209812] 01:14:00,360 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#606546767] 01:14:00,464 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:14:00,464 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 01:14:00,467 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 01:14:00,467 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:14:00,467 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 01:14:00,468 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 01:14:00,468 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 01:14:00,468 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 01:14:00,468 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 01:14:00,468 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:14:00,468 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:14:00,468 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:14:00,468 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:14:00,468 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 01:14:00,469 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:14:00,469 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:14:00,469 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:14:00,469 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:14:00,469 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:14:00,469 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:14:00,469 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:14:00,469 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#23930203] 01:14:00,481 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 01:14:00,482 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#1637371883] 01:14:00,484 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#1464617775] 01:14:00,485 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#-225818089] 01:14:00,485 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#790708157] 01:14:00,589 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:14:00,590 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:14:00,590 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:14:00,590 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#-936505614] 01:14:00,601 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 01:14:00,609 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:14:00,609 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:14:00,609 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:14:00,609 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:14:00,609 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 01:14:00,609 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:14:00,609 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:14:00,609 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#-1890969133] 01:14:00,620 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 01:14:00,725 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:14:00,725 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:14:00,725 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:14:00,726 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 01:14:00,726 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 01:14:00,727 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#1235972250] 01:14:00,738 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 01:14:00,739 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#-395871492] 01:14:00,742 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:14:00,742 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 01:14:00,743 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:14:00,743 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:14:00,743 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:14:00,744 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:14:00,744 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:14:00,744 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:14:00,744 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 01:14:00,744 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:14:00,744 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:14:00,744 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:14:00,744 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:14:00,744 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#-595104998] 01:14:00,755 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 01:14:00,756 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#1189629596] 01:14:00,756 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#1242512091] 01:14:00,760 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:14:00,760 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:14:00,760 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:14:00,761 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#-1796277953] 01:14:00,772 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 01:14:00,776 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:14:00,776 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:14:00,776 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:14:00,776 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 01:14:00,776 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 01:14:00,776 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:14:00,776 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-974481442] 01:14:00,788 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 01:14:00,790 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:14:00,790 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:14:00,790 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:14:00,790 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 01:14:00,790 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 01:14:00,790 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:14:00,791 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#-1505099473] 01:14:00,802 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 01:14:00,906 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:14:00,906 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:14:00,906 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:14:00,906 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 01:14:00,906 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 01:14:00,907 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:14:00,907 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:14:00,907 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:14:00,907 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:14:00,907 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 01:14:00,907 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 01:14:00,907 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:14:00,907 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:14:00,907 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:14:00,907 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 01:14:00,907 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 01:14:00,908 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 01:14:00,908 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 01:14:00,908 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:14:00,908 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:14:00,908 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:14:00,908 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 01:14:00,908 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 01:14:00,908 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:14:00,908 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-51712438] 01:14:00,920 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 01:14:01,24 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:14:01,24 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 01:14:01,24 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 01:14:01,24 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#1729973496] 01:14:01,36 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 01:14:01,39 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:14:01,40 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:14:01,40 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:14:01,40 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 01:14:01,40 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 01:14:01,40 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-1294281155] 01:14:01,51 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 01:14:01,156 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:14:01,156 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:14:01,156 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:14:01,156 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:14:01,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 01:14:01,156 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:14:01,156 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-1894679788] 01:14:01,168 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 01:14:01,170 AM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [04/13/2024 01:14:01.170] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [04/13/2024 01:14:01.173] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.74:25520) [INFO] [04/13/2024 01:14:01.173] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.74:25520] - Exiting completed [INFO] [04/13/2024 01:14:01.173] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.74:25520] - Shutting down... 01:14:01,173 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.74:25520] - Exiting completed 01:14:01,173 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.74:25520] - Shutting down... [INFO] [04/13/2024 01:14:01.173] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.74:25520] - Successfully shut down 01:14:01,174 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.74:25520] - Successfully shut down [INFO] [akkaDeadLetter][04/13/2024 01:14:01.172] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1591752406] 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'. 01:14:01,179 AM [test-akka.actor.default-dispatcher-11] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1591752406] 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] [04/13/2024 01:14:01.181] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.74:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [04/13/2024 01:14:01.181] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.74:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:14:01,182 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:14:01,182 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports.