[DEBUG] [03/26/2024 16:58:19.431] [main] [EventStream(akka://test)] logger log1-TestEventListener started 04:58:19,431 PM [test-akka.actor.default-dispatcher-7] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/26/2024 16:58:19.433] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/26/2024 16:58:19.433] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/26/2024 16:58:19.449] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.176:25520] with UID [-8075440248481710755] [INFO] [03/26/2024 16:58:19.449] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.176:25520] - Starting up, Akka version [2.6.21] ... 04:58:19,451 PM [test-akka.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.176:25520] with UID [-8075440248481710755] 04:58:19,451 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.176:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/26/2024 16:58:19.452] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.176:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/26/2024 16:58:19.452] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.176:25520] - Started up successfully 04:58:19,453 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.176:25520] - Registered cluster JMX MBean [akka:type=Cluster] 04:58:19,453 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.176:25520] - Started up successfully [INFO] [03/26/2024 16:58:19.454] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.176:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/26/2024 16:58:19.454] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.176:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 04:58:19,456 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.176:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 04:58:19,456 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.176:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 04:58:19,476 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:19,476 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:19,476 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:19,476 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 04:58:19,476 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 04:58:19,477 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:58:19,477 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 04:58:19,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior365#486660733] 04:58:19,488 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate366] 04:58:19,488 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer367#-1984168700] 04:58:19,591 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:19,595 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 04:58:19,595 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:19,596 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 04:58:19,596 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 04:58:19,596 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 04:58:19,596 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 04:58:19,596 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior368#-605252089] 04:58:19,607 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate369] 04:58:19,607 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer370#1487480260] 04:58:19,710 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:19,710 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:19,710 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:58:19,711 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 04:58:19,711 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 04:58:19,711 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 04:58:19,711 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior371#-2108457478] 04:58:19,722 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate372] 04:58:19,723 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer373#1828816447] 04:58:19,828 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:19,828 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:19,828 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:19,829 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 04:58:19,829 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=[]] 04:58:19,830 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:58:19,830 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:58:19,830 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:58:19,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior374#-1720558610] 04:58:19,841 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate375] 04:58:19,842 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer376#-831140090] 04:58:19,944 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:19,944 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 04:58:19,946 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:58:19,946 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:19,946 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 04:58:19,946 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 04:58:19,946 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 04:58:19,946 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 04:58:19,946 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 04:58:19,946 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 04:58:19,946 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:58:19,947 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:58:19,947 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:58:19,947 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 04:58:19,947 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior377#361820352] 04:58:19,958 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate378] 04:58:19,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer379#-645555866] 04:58:19,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer380#1136573631] 04:58:20,61 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:20,61 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:20,61 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:20,62 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 04:58:20,62 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 04:58:20,62 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 04:58:20,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior381#-998613894] 04:58:20,73 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate382] 04:58:20,74 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer383#272042215] 04:58:20,177 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:20,178 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:20,178 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 04:58:20,178 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 04:58:20,178 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]]] 04:58:20,178 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:58:20,178 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:58:20,178 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:58:20,178 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior384#1810019151] 04:58:20,189 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate385] 04:58:20,292 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:20,293 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:20,293 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:58:20,294 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 04:58:20,294 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 04:58:20,294 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 04:58:20,294 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior386#-1930615355] 04:58:20,306 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate387] 04:58:20,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer388#-1702586674] 04:58:20,412 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:20,412 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:20,412 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:20,412 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior389#-706809007] 04:58:20,424 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate390] 04:58:20,476 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 04:58:20,477 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 04:58:20,477 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 04:58:20,477 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 04:58:20,880 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 04:58:20,880 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 04:58:20,880 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 04:58:20,880 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 04:58:20,880 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:58:20,880 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:58:20,881 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:58:20,881 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:58:20,881 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:58:20,881 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:58:20,881 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 04:58:20,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior391#2096826418] 04:58:20,893 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate392] 04:58:20,893 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer393#57776747] 04:58:20,893 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer394#472283990] 04:58:20,893 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer395#605222067] 04:58:20,894 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer396#-107502113] 04:58:20,997 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:20,997 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 04:58:20,999 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 04:58:20,999 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 04:58:20,999 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 04:58:20,999 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 04:58:20,999 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 04:58:20,999 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 04:58:21,0 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 04:58:21,0 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 04:58:21,0 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 04:58:21,0 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 04:58:21,0 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 04:58:21,0 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 04:58:21,0 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:58:21,0 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:58:21,0 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:58:21,0 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:58:21,0 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:58:21,0 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:58:21,0 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 04:58:21,0 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior397#-577344841] 04:58:21,11 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate398] 04:58:21,11 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer399#1569274910] 04:58:21,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer400#-438460824] 04:58:21,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer401#1025888858] 04:58:21,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer402#-20605196] 04:58:21,115 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:21,115 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:21,115 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:21,115 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior403#1297420218] 04:58:21,127 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate404] 04:58:21,232 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:21,232 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:21,232 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:21,232 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 04:58:21,232 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 04:58:21,232 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:58:21,232 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:58:21,232 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior405#-1621769509] 04:58:21,243 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate406] 04:58:21,348 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:21,348 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:21,348 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:21,349 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 04:58:21,349 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 04:58:21,349 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior407#800145025] 04:58:21,360 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate408] 04:58:21,360 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer409#683749933] 04:58:21,463 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:21,463 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 04:58:21,464 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:58:21,464 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:21,464 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 04:58:21,464 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 04:58:21,464 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 04:58:21,464 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 04:58:21,465 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 04:58:21,465 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:58:21,465 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:58:21,465 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:58:21,465 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:58:21,465 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior410#1792144248] 04:58:21,476 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate411] 04:58:21,476 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer412#-1741222127] 04:58:21,476 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer413#878498042] 04:58:21,579 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:21,580 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:21,580 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:21,580 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior414#-315693502] 04:58:21,591 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate415] 04:58:21,694 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:21,695 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:21,695 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:21,695 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 04:58:21,695 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 04:58:21,695 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 04:58:21,695 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior416#950219393] 04:58:21,706 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate417] 04:58:21,809 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:21,809 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:21,809 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:21,809 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 04:58:21,809 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 04:58:21,809 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 04:58:21,809 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior418#-1144391420] 04:58:21,821 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate419] 04:58:21,924 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:21,924 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:21,924 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:21,924 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 04:58:21,925 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 04:58:21,925 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:58:21,925 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:58:21,925 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:21,925 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:21,925 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 04:58:21,925 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 04:58:21,925 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:58:21,925 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:21,925 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:21,925 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 04:58:21,925 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 04:58:21,925 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 04:58:21,925 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 04:58:21,925 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:58:21,925 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:21,925 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:58:21,925 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 04:58:21,926 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 04:58:21,926 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:58:21,926 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior420#1260514875] 04:58:21,939 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate421] 04:58:21,958 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 04:58:21,958 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 04:58:21,958 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 04:58:21,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior422#731716466] 04:58:21,974 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate423] 04:58:21,976 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:21,976 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:21,976 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:58:21,976 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 04:58:21,977 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 04:58:21,977 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior424#-1801958508] 04:58:21,994 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate425] 04:58:21,999 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:58:21,999 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:58:21,999 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:58:21,999 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 04:58:21,999 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 04:58:21,999 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 04:58:21,999 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior426#1810516722] 04:58:22,10 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate427] [INFO] [03/26/2024 16:58:22.011] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:58:22,11 PM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/26/2024 16:58:22.012] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.176:25520) [INFO] [03/26/2024 16:58:22.013] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.176:25520] - Exiting completed [INFO] [03/26/2024 16:58:22.013] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.176:25520] - Shutting down... [INFO] [03/26/2024 16:58:22.014] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.176:25520] - Successfully shut down [INFO] [akkaDeadLetter][03/26/2024 16:58:22.012] [test-akka.actor.default-dispatcher-7] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-165676185] 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'. 04:58:22,14 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.176:25520] - Exiting completed 04:58:22,15 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.176:25520] - Shutting down... 04:58:22,15 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.176:25520] - Successfully shut down 04:58:22,15 PM [test-akka.actor.default-dispatcher-11] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-165676185] 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] [03/26/2024 16:58:22.036] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.176:25520/system/remoting-terminator] Shutting down remote daemon. 04:58:22,36 PM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 04:58:22,37 PM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/26/2024 16:58:22.036] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.176:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports.