[DEBUG] [01/16/2024 11:01:47.297] [main] [EventStream(akka://test)] logger log1-TestEventListener started 11:01:47,298 AM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [01/16/2024 11:01:47.298] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [01/16/2024 11:01:47.298] [main] [EventStream(akka://test)] Default Loggers started [INFO] [01/16/2024 11:01:47.320] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.54:25520] with UID [-628012018881746466] [INFO] [01/16/2024 11:01:47.321] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.54:25520] - Starting up, Akka version [2.6.21] ... 11:01:47,322 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.54:25520] with UID [-628012018881746466] 11:01:47,322 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.54:25520] - Starting up, Akka version [2.6.21] ... [INFO] [01/16/2024 11:01:47.326] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.54:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [01/16/2024 11:01:47.326] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.54:25520] - Started up successfully [INFO] [01/16/2024 11:01:47.328] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.54:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [01/16/2024 11:01:47.328] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.54:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 11:01:47,329 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.54:25520] - Registered cluster JMX MBean [akka:type=Cluster] 11:01:47,329 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.54:25520] - Started up successfully 11:01:47,329 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.54:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 11:01:47,329 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.54:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 11:01:47,446 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:47,446 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:47,446 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:47,448 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 11:01:47,448 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 11:01:47,448 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:47,448 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 11:01:47,448 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior172#1251831947] 11:01:47,460 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate173] 11:01:47,460 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer174#-958821434] 11:01:47,462 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:47,463 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 11:01:47,463 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:47,463 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:01:47,463 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:01:47,464 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:01:47,464 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:01:47,464 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior175#541597304] 11:01:47,476 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate176] 11:01:47,477 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer177#1703079804] 11:01:47,485 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:47,485 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:47,485 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:01:47,487 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:01:47,487 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 11:01:47,487 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 11:01:47,488 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior178#2128660878] 11:01:47,499 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate179] 11:01:47,500 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer180#-1295710480] 11:01:47,610 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:47,611 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:47,611 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:47,612 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 11:01:47,612 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=[]] 11:01:47,612 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:01:47,612 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:47,612 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:01:47,613 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior181#236705275] 11:01:47,624 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate182] 11:01:47,624 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer183#1724184462] 11:01:47,627 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:47,627 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 11:01:47,628 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:01:47,628 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:47,628 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:01:47,628 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 11:01:47,628 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 11:01:47,628 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:01:47,628 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 11:01:47,630 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 11:01:47,630 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:01:47,630 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:01:47,631 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:47,631 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 11:01:47,631 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior184#-888065506] 11:01:47,643 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate185] 11:01:47,643 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer186#-1334444826] 11:01:47,644 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer187#-969227719] 11:01:47,646 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:47,646 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:47,646 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:47,647 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 11:01:47,647 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 11:01:47,647 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 11:01:47,647 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior188#-2113998900] 11:01:47,658 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate189] 11:01:47,659 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer190#-834602293] 11:01:47,666 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:47,666 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:47,666 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:01:47,666 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 11:01:47,666 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]]] 11:01:47,666 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:01:47,666 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:47,666 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:01:47,666 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#-2136172303] 11:01:47,678 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 11:01:47,781 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:47,782 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:47,782 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:01:47,782 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:01:47,782 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 11:01:47,783 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 11:01:47,783 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior193#98130773] 11:01:47,794 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate194] 11:01:47,795 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer195#-1490305576] 11:01:47,898 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:47,898 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:47,898 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:47,899 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-1050005237] 11:01:47,910 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 11:01:47,981 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 11:01:47,983 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 11:01:47,983 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 11:01:47,983 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 11:01:48,389 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 11:01:48,390 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 11:01:48,390 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 11:01:48,390 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:01:48,390 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:01:48,390 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:01:48,391 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:01:48,391 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:01:48,391 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:01:48,391 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:48,391 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 11:01:48,392 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior198#1786187811] 11:01:48,403 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate199] 11:01:48,404 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-763180425] 11:01:48,404 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-580562524] 11:01:48,404 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer202#-1969021952] 11:01:48,406 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer203#-2038276654] 11:01:48,411 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:48,411 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 11:01:48,414 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 11:01:48,414 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:01:48,414 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 11:01:48,414 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 11:01:48,414 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 11:01:48,414 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 11:01:48,416 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 11:01:48,416 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 11:01:48,416 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 11:01:48,416 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:01:48,416 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 11:01:48,416 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 11:01:48,416 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:01:48,416 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:01:48,416 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:01:48,416 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:01:48,416 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:01:48,417 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:48,417 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:01:48,417 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior204#1510607936] 11:01:48,428 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate205] 11:01:48,428 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#19604185] 11:01:48,429 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#339537268] 11:01:48,430 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer208#1108136076] 11:01:48,430 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer209#382636790] 11:01:48,436 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:48,436 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:48,436 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:48,437 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#-1508206060] 11:01:48,448 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 11:01:48,452 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:48,452 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:48,452 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:48,452 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:01:48,453 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 11:01:48,453 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:48,453 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:01:48,453 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-820758863] 11:01:48,464 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 11:01:48,468 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:48,468 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:48,469 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:48,469 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 11:01:48,469 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 11:01:48,470 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior214#190241612] 11:01:48,481 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate215] 11:01:48,481 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer216#2021030791] 11:01:48,489 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:48,489 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 11:01:48,490 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:01:48,490 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:48,491 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:01:48,491 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 11:01:48,491 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 11:01:48,491 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:01:48,491 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 11:01:48,491 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:01:48,491 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:01:48,492 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:48,492 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:01:48,492 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior217#-1139172082] 11:01:48,503 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate218] 11:01:48,503 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer219#-1498342917] 11:01:48,504 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer220#979714796] 11:01:48,507 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:48,507 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:48,507 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:48,508 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#1050781180] 11:01:48,519 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 11:01:48,522 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:48,523 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:48,523 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:48,523 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 11:01:48,523 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 11:01:48,523 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 11:01:48,523 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#-1411183004] 11:01:48,535 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 11:01:48,538 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:48,538 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:48,538 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:48,538 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 11:01:48,538 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 11:01:48,538 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 11:01:48,538 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#1811371551] 11:01:48,549 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 11:01:48,552 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:48,552 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:48,552 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:48,552 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 11:01:48,552 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 11:01:48,552 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:48,552 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:01:48,552 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:48,552 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:48,552 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 11:01:48,552 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 11:01:48,552 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:01:48,552 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:48,552 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:48,552 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 11:01:48,552 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 11:01:48,552 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 11:01:48,552 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 11:01:48,553 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:01:48,553 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:48,553 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:01:48,553 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 11:01:48,553 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 11:01:48,553 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:01:48,553 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#-1186435457] 11:01:48,565 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 11:01:48,567 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 11:01:48,567 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 11:01:48,567 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 11:01:48,567 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-475304234] 11:01:48,579 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 11:01:48,585 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:48,585 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:48,585 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:01:48,585 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 11:01:48,585 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 11:01:48,586 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-408225390] 11:01:48,597 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 11:01:48,600 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:01:48,601 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:48,601 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:01:48,601 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:01:48,601 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 11:01:48,601 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 11:01:48,601 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior233#766853607] 11:01:48,612 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate234] [INFO] [01/16/2024 11:01:48.613] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:01:48,614 AM [test-akka.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [01/16/2024 11:01:48.615] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.54:25520) 11:01:48,619 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.54:25520] - Exiting completed [INFO] [01/16/2024 11:01:48.616] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.54:25520] - Exiting completed 11:01:48,619 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.54:25520] - Shutting down... 11:01:48,619 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.54:25520] - Successfully shut down [INFO] [01/16/2024 11:01:48.616] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.54:25520] - Shutting down... [INFO] [01/16/2024 11:01:48.616] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.54:25520] - Successfully shut down [INFO] [akkaDeadLetter][01/16/2024 11:01:48.615] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1071360297] 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'. 11:01:48,621 AM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1071360297] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [01/16/2024 11:01:48.622] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.54:25520/system/remoting-terminator] Shutting down remote daemon. 11:01:48,622 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [01/16/2024 11:01:48.622] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.54:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 11:01:48,622 AM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [01/16/2024 11:01:48.629] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.54:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [01/16/2024 11:01:48.630] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger 11:01:48,630 AM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.