[DEBUG] [11/11/2024 21:04:47.412] [main] [EventStream(akka://test)] logger log1-TestEventListener started 09:04:47,412 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/11/2024 21:04:47.412] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [11/11/2024 21:04:47.412] [main] [EventStream(akka://test)] Default Loggers started [INFO] [11/11/2024 21:04:47.423] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.17:25520] with UID [1777255533315589090] 09:04:47,423 PM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.17:25520] with UID [1777255533315589090] [INFO] [11/11/2024 21:04:47.424] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.17:25520] - Starting up, Akka version [2.6.21] ... 09:04:47,424 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.17:25520] - Starting up, Akka version [2.6.21] ... [INFO] [11/11/2024 21:04:47.426] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.17:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [11/11/2024 21:04:47.426] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.17:25520] - Started up successfully 09:04:47,426 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.17:25520] - Registered cluster JMX MBean [akka:type=Cluster] 09:04:47,426 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.17:25520] - Started up successfully 09:04:47,433 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.17:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 09:04:47,433 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.17:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [11/11/2024 21:04:47.427] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.17:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [11/11/2024 21:04:47.427] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.17:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 09:04:47,538 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:47,538 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:47,538 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:47,540 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 09:04:47,540 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 09:04:47,540 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:04:47,540 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 09:04:47,540 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior416#-1019533488] 09:04:47,552 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate417] 09:04:47,553 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer418#632996727] 09:04:47,554 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:47,555 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 09:04:47,555 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:47,555 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 09:04:47,555 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 09:04:47,555 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 09:04:47,555 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 09:04:47,555 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior419#-1335986862] 09:04:47,566 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate420] 09:04:47,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer421#-1661720138] 09:04:47,669 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:47,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:47,669 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 09:04:47,670 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 09:04:47,670 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 09:04:47,670 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 09:04:47,670 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior422#-1115950464] 09:04:47,681 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate423] 09:04:47,681 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer424#1305445527] 09:04:47,783 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:47,783 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:47,783 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:47,784 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 09:04:47,784 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=[]] 09:04:47,784 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 09:04:47,784 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:04:47,784 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 09:04:47,785 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior425#516455593] 09:04:47,795 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate426] 09:04:47,796 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer427#-119207884] 09:04:47,798 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:47,798 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 09:04:47,798 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 09:04:47,799 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:47,799 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 09:04:47,799 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 09:04:47,799 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 09:04:47,799 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 09:04:47,799 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 09:04:47,799 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 09:04:47,799 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:04:47,799 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:04:47,799 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:04:47,799 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 09:04:47,799 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior428#732150173] 09:04:47,810 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate429] 09:04:47,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer430#1659755873] 09:04:47,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer431#-544263250] 09:04:47,811 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:47,811 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:47,811 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:47,811 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 09:04:47,811 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 09:04:47,811 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 09:04:47,811 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior432#663329610] 09:04:47,822 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate433] 09:04:47,822 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer434#589395115] 09:04:47,824 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:47,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:47,824 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 09:04:47,824 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 09:04:47,824 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]]] 09:04:47,824 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 09:04:47,824 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:04:47,824 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 09:04:47,824 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior435#763188315] 09:04:47,835 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate436] 09:04:47,836 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:47,836 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:47,836 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 09:04:47,836 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 09:04:47,836 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 09:04:47,836 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 09:04:47,837 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior437#794031090] 09:04:47,847 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate438] 09:04:47,847 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer439#-442783829] 09:04:47,849 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:47,849 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:47,849 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:47,849 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior440#-634508110] 09:04:47,860 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate441] 09:04:47,964 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 09:04:47,964 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 09:04:47,964 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 09:04:47,964 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 09:04:48,367 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 09:04:48,367 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 09:04:48,367 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 09:04:48,367 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 09:04:48,368 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 09:04:48,368 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:04:48,368 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:04:48,368 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:04:48,368 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:04:48,368 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:04:48,368 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 09:04:48,368 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior442#1008180277] 09:04:48,380 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate443] 09:04:48,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer444#447309931] 09:04:48,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer445#1302617048] 09:04:48,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer446#-813045878] 09:04:48,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer447#-1832219171] 09:04:48,382 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:48,382 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 09:04:48,384 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 09:04:48,384 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 09:04:48,384 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 09:04:48,384 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 09:04:48,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 09:04:48,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 09:04:48,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 09:04:48,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 09:04:48,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 09:04:48,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 09:04:48,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 09:04:48,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 09:04:48,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 09:04:48,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:04:48,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:04:48,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:04:48,385 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:04:48,385 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:04:48,385 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 09:04:48,385 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior448#-525698183] 09:04:48,396 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate449] 09:04:48,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer450#-783407731] 09:04:48,397 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer451#-1349524745] 09:04:48,397 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer452#-170754238] 09:04:48,397 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer453#-421018606] 09:04:48,399 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:48,399 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:48,399 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:48,399 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior454#939328640] 09:04:48,409 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate455] 09:04:48,413 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:48,413 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:48,413 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:48,413 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 09:04:48,413 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 09:04:48,413 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:04:48,413 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 09:04:48,413 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#1149157574] 09:04:48,424 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457] 09:04:48,426 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:48,426 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:48,426 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:48,426 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 09:04:48,426 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 09:04:48,427 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior458#-437366945] 09:04:48,437 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate459] 09:04:48,437 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer460#1399179969] 09:04:48,439 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:48,439 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 09:04:48,440 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 09:04:48,440 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:48,440 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 09:04:48,440 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 09:04:48,440 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 09:04:48,440 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 09:04:48,440 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 09:04:48,440 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:04:48,440 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:04:48,440 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:04:48,440 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 09:04:48,440 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior461#-972654040] 09:04:48,451 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate462] 09:04:48,451 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer463#519095121] 09:04:48,451 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#2138597045] 09:04:48,454 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:48,454 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:48,454 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:48,454 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior465#-482305410] 09:04:48,465 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate466] 09:04:48,466 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:48,466 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:48,466 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:48,466 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 09:04:48,466 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 09:04:48,466 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 09:04:48,466 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior467#-1848409607] 09:04:48,477 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate468] 09:04:48,478 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:48,478 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:48,478 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:48,478 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 09:04:48,478 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 09:04:48,478 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 09:04:48,479 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior469#2090489182] 09:04:48,489 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate470] 09:04:48,491 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:48,491 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:48,491 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:48,491 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 09:04:48,491 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 09:04:48,491 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:04:48,491 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:04:48,491 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:48,491 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:48,491 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 09:04:48,491 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 09:04:48,491 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:04:48,491 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:48,491 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:48,491 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 09:04:48,491 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 09:04:48,491 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 09:04:48,491 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 09:04:48,491 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:04:48,492 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:48,492 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:04:48,492 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 09:04:48,492 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 09:04:48,492 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:04:48,492 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior471#-1045799089] 09:04:48,502 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate472] 09:04:48,504 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 09:04:48,504 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 09:04:48,504 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 09:04:48,504 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior473#1373942518] 09:04:48,514 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate474] 09:04:48,516 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:48,516 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:48,516 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 09:04:48,516 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 09:04:48,516 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 09:04:48,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#-850117165] 09:04:48,527 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476] 09:04:48,528 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:04:48,528 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:04:48,528 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 09:04:48,529 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 09:04:48,529 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 09:04:48,529 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 09:04:48,529 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#-2042558108] 09:04:48,539 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478] [INFO] [11/11/2024 21:04:48.540] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:04:48,540 PM [test-akka.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [11/11/2024 21:04:48.542] [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.17:25520) [INFO] [11/11/2024 21:04:48.542] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.17:25520] - Exiting completed [INFO] [akkaDeadLetter][11/11/2024 21:04:48.542] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-2034424361] 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] [11/11/2024 21:04:48.542] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.17:25520] - Shutting down... 09:04:48,542 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.17:25520] - Exiting completed 09:04:48,542 PM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-2034424361] 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'. 09:04:48,542 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.17:25520] - Shutting down... [INFO] [11/11/2024 21:04:48.542] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.17:25520] - Successfully shut down 09:04:48,543 PM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.170.17:25520] - Successfully shut down [INFO] [11/11/2024 21:04:48.544] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.17:25520/system/remoting-terminator] Shutting down remote daemon. 09:04:48,544 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 09:04:48,545 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/11/2024 21:04:48.545] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.17:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/11/2024 21:04:48.547] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.17:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [11/11/2024 21:04:48.548] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger 09:04:48,548 PM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.