[DEBUG] [10/02/2024 09:56:59.874] [main] [EventStream(akka://test)] logger log1-TestEventListener started 09:56:59,875 AM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/02/2024 09:56:59.875] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [10/02/2024 09:56:59.875] [main] [EventStream(akka://test)] Default Loggers started [INFO] [10/02/2024 09:56:59.889] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.217:25520] with UID [3202106094553258798] 09:56:59,889 AM [test-akka.actor.default-dispatcher-8] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.217:25520] with UID [3202106094553258798] [INFO] [10/02/2024 09:56:59.889] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.217:25520] - Starting up, Akka version [2.6.21] ... 09:56:59,889 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.217:25520] - Starting up, Akka version [2.6.21] ... [INFO] [10/02/2024 09:56:59.892] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.217:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [10/02/2024 09:56:59.892] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.217:25520] - Started up successfully 09:56:59,893 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.217:25520] - Registered cluster JMX MBean [akka:type=Cluster] 09:56:59,893 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.217:25520] - Started up successfully [INFO] [10/02/2024 09:56:59.896] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.217:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [10/02/2024 09:56:59.896] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.217:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 09:56:59,896 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.217:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 09:56:59,896 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.217:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 09:56:59,904 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:56:59,904 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:56:59,904 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:56:59,905 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 09:56:59,905 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 09:56:59,905 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:56:59,905 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 09:56:59,905 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#-1124289791] 09:56:59,906 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457] 09:56:59,906 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer458#-415078226] 09:56:59,908 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:56:59,908 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 09:56:59,908 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:56:59,908 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 09:56:59,908 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 09:56:59,908 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 09:56:59,908 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 09:56:59,908 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior459#56676061] 09:56:59,909 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate460] 09:56:59,909 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer461#-975387948] 09:56:59,910 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:56:59,910 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:56:59,910 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 09:56:59,910 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 09:56:59,910 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 09:56:59,910 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 09:56:59,910 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior462#-1531353392] 09:56:59,911 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate463] 09:56:59,911 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#-1078874100] 09:56:59,911 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:56:59,911 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:56:59,911 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:56:59,912 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 09:56:59,912 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=[]] 09:56:59,912 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 09:56:59,912 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:56:59,912 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 09:56:59,912 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior465#-778201536] 09:56:59,913 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate466] 09:56:59,913 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer467#-1899768532] 09:56:59,913 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:56:59,913 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 09:56:59,914 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 09:56:59,914 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:56:59,914 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 09:56:59,914 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 09:56:59,914 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 09:56:59,914 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 09:56:59,914 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 09:56:59,914 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 09:56:59,914 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:56:59,914 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:56:59,914 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:56:59,914 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 09:56:59,914 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior468#-1912186656] 09:56:59,915 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate469] 09:56:59,915 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer470#-1980138071] 09:56:59,915 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer471#-1524791325] 09:56:59,916 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:56:59,916 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:56:59,916 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:56:59,916 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 09:56:59,916 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 09:56:59,916 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 09:56:59,916 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior472#-1709465586] 09:56:59,916 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate473] 09:56:59,917 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer474#333657823] 09:56:59,917 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:56:59,917 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:56:59,917 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 09:56:59,917 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 09:56:59,917 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]]] 09:56:59,917 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 09:56:59,918 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:56:59,918 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 09:56:59,918 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#1030146961] 09:56:59,918 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476] 09:56:59,920 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:56:59,920 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:56:59,920 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 09:56:59,920 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 09:56:59,920 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 09:56:59,920 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 09:56:59,920 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#-562451146] 09:56:59,921 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478] 09:56:59,921 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer479#-831977371] 09:56:59,922 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:56:59,922 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:56:59,922 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:56:59,922 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior480#-32629047] 09:56:59,922 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate481] 09:56:59,925 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 09:56:59,925 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 09:56:59,925 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 09:56:59,925 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 09:57:00,327 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 09:57:00,327 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 09:57:00,328 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 09:57:00,328 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 09:57:00,328 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 09:57:00,328 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:57:00,328 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:57:00,328 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:57:00,329 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:57:00,329 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:57:00,329 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 09:57:00,329 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior482#1613064742] 09:57:00,330 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate483] 09:57:00,330 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer484#-832596254] 09:57:00,330 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer485#1723034152] 09:57:00,331 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer486#-1918478076] 09:57:00,331 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer487#-1293022751] 09:57:00,333 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:57:00,333 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 09:57:00,335 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 09:57:00,335 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 09:57:00,335 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 09:57:00,335 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 09:57:00,335 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 09:57:00,336 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 09:57:00,336 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 09:57:00,336 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 09:57:00,336 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 09:57:00,336 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 09:57:00,336 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 09:57:00,336 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 09:57:00,336 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 09:57:00,336 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:57:00,336 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:57:00,336 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:57:00,336 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:57:00,336 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:57:00,336 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 09:57:00,336 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior488#-1603560178] 09:57:00,347 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate489] 09:57:00,348 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer490#-2108958523] 09:57:00,348 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer491#-896093910] 09:57:00,348 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer492#-1847016480] 09:57:00,348 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer493#1469286720] 09:57:00,351 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:57:00,351 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:57:00,351 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:57:00,351 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior494#-1700221784] 09:57:00,362 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate495] 09:57:00,364 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:57:00,365 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:57:00,365 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:57:00,365 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 09:57:00,365 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 09:57:00,365 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:57:00,365 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 09:57:00,365 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior496#2039520344] 09:57:00,375 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate497] 09:57:00,377 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:57:00,377 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:57:00,377 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:57:00,377 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 09:57:00,378 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 09:57:00,378 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior498#1898296010] 09:57:00,388 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate499] 09:57:00,388 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer500#-1028166900] 09:57:00,390 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:57:00,390 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 09:57:00,391 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 09:57:00,391 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:57:00,391 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 09:57:00,391 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 09:57:00,391 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 09:57:00,391 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 09:57:00,392 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 09:57:00,392 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:57:00,392 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:57:00,392 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:57:00,392 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 09:57:00,392 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior501#-351273096] 09:57:00,403 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate502] 09:57:00,403 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer503#93431171] 09:57:00,404 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer504#-1728044984] 09:57:00,407 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:57:00,407 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:57:00,407 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:57:00,407 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior505#1229788141] 09:57:00,417 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate506] 09:57:00,419 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:57:00,419 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:57:00,419 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:57:00,420 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 09:57:00,420 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 09:57:00,420 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 09:57:00,420 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior507#1136241270] 09:57:00,430 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate508] 09:57:00,433 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:57:00,433 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:57:00,433 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:57:00,433 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 09:57:00,433 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 09:57:00,433 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 09:57:00,433 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior509#337614866] 09:57:00,444 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate510] 09:57:00,445 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:57:00,445 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:57:00,445 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:57:00,446 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 09:57:00,446 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 09:57:00,446 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:57:00,446 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:57:00,446 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:57:00,446 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:57:00,446 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 09:57:00,446 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 09:57:00,446 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:57:00,446 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:57:00,446 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:57:00,446 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 09:57:00,446 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 09:57:00,446 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 09:57:00,446 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 09:57:00,446 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:57:00,446 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:57:00,446 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:57:00,446 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 09:57:00,446 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 09:57:00,446 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:57:00,447 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior511#518339720] 09:57:00,457 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate512] 09:57:00,460 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 09:57:00,460 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 09:57:00,460 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 09:57:00,460 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior513#2140723804] 09:57:00,471 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate514] 09:57:00,573 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:57:00,573 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:57:00,573 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 09:57:00,573 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 09:57:00,573 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 09:57:00,573 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior515#-1843621588] 09:57:00,584 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate516] 09:57:00,687 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:57:00,687 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:57:00,687 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 09:57:00,687 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 09:57:00,687 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 09:57:00,687 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 09:57:00,687 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior517#1721742779] 09:57:00,698 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate518] [INFO] [10/02/2024 09:57:00.699] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:57:00,699 AM [test-akka.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [10/02/2024 09:57:00.700] [test-akka.actor.default-dispatcher-7] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.217:25520) [INFO] [akkaDeadLetter][10/02/2024 09:57:00.700] [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#-627158741] 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:57:00,700 AM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-627158741] 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:57:00,701 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.217:25520] - Exiting completed [INFO] [10/02/2024 09:57:00.701] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.217:25520] - Exiting completed 09:57:00,701 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.217:25520] - Shutting down... [INFO] [10/02/2024 09:57:00.701] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.217:25520] - Shutting down... [INFO] [10/02/2024 09:57:00.701] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.217:25520] - Successfully shut down 09:57:00,702 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.217:25520] - Successfully shut down 09:57:00,704 AM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [10/02/2024 09:57:00.703] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.170.217:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [10/02/2024 09:57:00.704] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.170.217:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 09:57:00,704 AM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/02/2024 09:57:00.706] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.217:25520/system/remoting-terminator] Remoting shut down. 09:57:00,706 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [10/02/2024 09:57:00.706] [test-akka.actor.internal-dispatcher-5] [EventStream] shutting down: StandardOutLogger