[DEBUG] [09/04/2024 13:50:05.495] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:50:05,495 PM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [09/04/2024 13:50:05.495] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [09/04/2024 13:50:05.495] [main] [EventStream(akka://test)] Default Loggers started [INFO] [09/04/2024 13:50:05.519] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.72:25520] with UID [702492700927330967] [INFO] [09/04/2024 13:50:05.520] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.72:25520] - Starting up, Akka version [2.6.21] ... 01:50:05,520 PM [test-akka.actor.default-dispatcher-9] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.72:25520] with UID [702492700927330967] 01:50:05,520 PM [test-akka.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [akka://test@10.30.171.72:25520] - Starting up, Akka version [2.6.21] ... [INFO] [09/04/2024 13:50:05.522] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.72:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [09/04/2024 13:50:05.522] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.72:25520] - Started up successfully [INFO] [09/04/2024 13:50:05.525] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.72:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [09/04/2024 13:50:05.525] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.72:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:50:05,527 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.72:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:50:05,527 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.72:25520] - Started up successfully 01:50:05,527 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.72:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:50:05,527 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.72:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:50:05,535 PM [main] [INFO] LeaderTest - Starting testHandleMessageForUnknownMessage 01:50:05,535 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:05,535 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:05,535 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior644#-774630737] 01:50:05,546 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader645] 01:50:05,546 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower646] 01:50:05,548 PM [main] [INFO] LeaderTest - Starting testLaggingFollowerStarvation 01:50:05,549 PM [main] [DEBUG] MockRaftActorContext - leader650: Moving last applied index from -1 to 1 01:50:05,549 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): Election: Leader has following peers: [follower652, follower651] 01:50:05,549 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): Checking sendAppendEntries for follower follower652: active: false, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:50:05,549 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): Checking sendAppendEntries for follower follower651: active: false, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:50:05,549 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower651 updated: matchIndex: 1, nextIndex: 2 01:50:05,549 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): Checking sendAppendEntries for follower follower651: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:50:05,549 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): sendAppendEntries: 2 is present for follower follower651 01:50:05,549 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): Sending AppendEntries to follower follower651: AppendEntries [leaderId=leader650, prevLogIndex=2, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=1, payload=3], SimpleReplicatedLogEntry [index=4, term=1, payload=4]]] 01:50:05,749 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower651 updated: matchIndex: 2, nextIndex: 3 01:50:05,749 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:50:05,749 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): Setting last applied to 2 01:50:05,749 PM [main] [DEBUG] MockRaftActorContext - leader650: Moving last applied index from 1 to 2 01:50:05,750 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): Checking sendAppendEntries for follower follower651: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:50:05,750 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): sendAppendEntries: 3 is present for follower follower651 01:50:05,750 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): Sending AppendEntries to follower follower651: AppendEntries [leaderId=leader650, prevLogIndex=3, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=1, payload=4]]] 01:50:05,950 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower651 updated: matchIndex: 3, nextIndex: 4 01:50:05,950 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 01:50:05,950 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): Setting last applied to 3 01:50:05,950 PM [main] [DEBUG] MockRaftActorContext - leader650: Moving last applied index from 2 to 3 01:50:05,950 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): Checking sendAppendEntries for follower follower651: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:50:05,950 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): sendAppendEntries: 4 is present for follower follower651 01:50:06,150 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower651 updated: matchIndex: 4, nextIndex: 5 01:50:06,150 PM [main] [DEBUG] MockRaftActorContext - leader650 (Leader): Checking sendAppendEntries for follower follower651: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:50:06,350 PM [main] [INFO] MockRaftActorContext - leader650 (Leader): handleAppendEntriesReply: follower follower651 lastIndex 5 is ahead of our lastIndex 4 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 01:50:06,350 PM [main] [INFO] MockRaftActorContext - leader650: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=4, lastAppliedTerm=1, lastIndex=4, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower651 01:50:06,351 PM [main] [DEBUG] MockRaftActorContext - leader650: lastSequenceNumber prior to capture: -1 01:50:06,551 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior647#1558101608] 01:50:06,562 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader648] 01:50:06,563 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower649] 01:50:06,563 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower651#-1897868871] 01:50:06,563 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower652#1151066102] 01:50:06,666 PM [main] [INFO] LeaderTest - Starting testHandleInstallSnapshotReplyWithInvalidChunkIndex 01:50:06,667 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:06,668 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:06,668 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:07,670 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendInstallSnapshot 01:50:07,670 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 106 bytes, total chunks to send: 3 01:50:07,670 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=0, size=50, hashCode=-65379387 01:50:07,670 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 50 01:50:07,670 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower655), Chunk: 1/3 01:50:07,670 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=2, followerId=follower, chunkIndex=-1, success=false] 01:50:07,670 PM [main] [ERROR] MockRaftActorContext - leader (Leader): Chunk index -1 in InstallSnapshotReply from follower follower does not match expected index 1 01:50:07,770 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=0, size=50, hashCode=-65379387 01:50:07,770 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 50 01:50:07,770 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower655), Chunk: 1/3 01:50:07,771 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior653#384638607] 01:50:07,782 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader654] 01:50:07,782 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower655] 01:50:07,885 PM [main] [INFO] LeaderTest - Starting testLeaderAddressInAppendEntries 01:50:07,885 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:07,885 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to -1 01:50:07,885 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:07,885 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:07,886 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:50:07,886 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:07,986 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior656#-1851999953] 01:50:07,997 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader657] 01:50:07,998 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower658] 01:50:08,100 PM [main] [INFO] LeaderTest - Starting testHandleRequestVoteReply 01:50:08,100 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:08,100 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:08,100 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior659#1547536039] 01:50:08,111 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader660] 01:50:08,111 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower661] 01:50:08,113 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplyFailureWithFollowersLogBehindTheLeader 01:50:08,113 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:08,114 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:50:08,114 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:50:08,114 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to 0 01:50:08,114 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:08,114 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:50:08,114 PM [main] [INFO] MockRaftActorContext - follower (Follower): The log is not empty but the prevLogIndex 1 was not found in it - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 01:50:08,114 PM [main] [INFO] MockRaftActorContext - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=1, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:50:08,114 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:50:08,114 PM [main] [INFO] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=1, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 01:50:08,114 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:50:08,114 PM [main] [INFO] MockRaftActorContext - leader (Leader): follower follower appears to be behind the leader from the last snapshot - updated: matchIndex: 0, nextIndex: 1 01:50:08,114 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:08,114 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:50:08,114 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 1 is present for follower follower 01:50:08,114 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=1], SimpleReplicatedLogEntry [index=2, term=1, payload=2]]] 01:50:08,114 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=1], SimpleReplicatedLogEntry [index=2, term=1, payload=2]]] 01:50:08,114 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Number of entries to be appended = 2 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 1 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 2 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Log size is now 3 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Commit index set to 2 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 1 for term 1 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:50:08,115 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 0, lastIndex(): 2 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 1 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 0 to 1 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 2 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to 2 01:50:08,115 PM [main] [DEBUG] MockRaftActorContext - follower: fakeSnapshot purging log to 0 for term 1 01:50:08,115 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior662#-1661581449] 01:50:08,126 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader663] 01:50:08,126 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower664] 01:50:08,127 PM [main] [INFO] LeaderTest - Starting testTransferLeadershipWithFollowerInitiallyOutOfSync 01:50:08,127 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:08,127 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:08,127 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:08,185 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Attempting to transfer leadership 01:50:08,185 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:08,186 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:50:08,186 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:08,186 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:50:08,186 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=1], SimpleReplicatedLogEntry [index=1, term=1, payload=2]]] 01:50:08,186 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: -1, lastIndex: 1, isVoting: true 01:50:08,387 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:50:08,387 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=1], SimpleReplicatedLogEntry [index=1, term=1, payload=2]]] 01:50:08,387 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:08,388 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:08,388 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:08,388 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: 1, lastIndex: 1, isVoting: true 01:50:08,388 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Follower's log matches - sending ElectionTimeout 01:50:08,388 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:08,388 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Leader transfer complete 01:50:08,388 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior665#1177292972] 01:50:08,399 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader666] 01:50:08,399 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower667] 01:50:08,609 PM [main] [INFO] LeaderTest - Starting testInstallSnapshot 01:50:08,609 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:08,609 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 3 01:50:08,609 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:08,609 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 2 01:50:08,609 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendInstallSnapshot 01:50:08,609 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 106 bytes, total chunks to send: 1 01:50:08,609 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=0, size=106, hashCode=1072258452 01:50:08,609 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 106 01:50:08,609 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower670), Chunk: 1/1 01:50:08,609 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior668#114125887] 01:50:08,620 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader669] 01:50:08,621 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower670] 01:50:08,623 PM [main] [INFO] LeaderTest - Starting testFollowerCatchUpWithAppendEntriesMaxDataSizeExceeded 01:50:08,623 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:08,623 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 3 01:50:08,623 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:50:08,623 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to -1 01:50:08,623 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:08,623 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 01:50:08,623 PM [main] [INFO] MockRaftActorContext - follower (Follower): The followers log is empty and the senders prevLogIndex is 2 01:50:08,623 PM [main] [INFO] MockRaftActorContext - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=1, success=false, followerId=follower, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:50:08,623 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:50:08,624 PM [main] [INFO] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=1, success=false, followerId=follower, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:50:08,624 PM [main] [INFO] MockRaftActorContext - leader (Leader): follower follower appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 3, leaderSnapShotIndex: -1 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=0], SimpleReplicatedLogEntry [index=1, term=1, payload=1]]] 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=0], SimpleReplicatedLogEntry [index=1, term=1, payload=1]]] 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Number of entries to be appended = 2 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 0 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 1 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Log size is now 2 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Commit index set to 1 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 1 for term 1 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=2], SimpleReplicatedLogEntry [index=3, term=1, payload=3]]] 01:50:08,624 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 2 entries behind leader leader and reached 1 (of expected -1) 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 1 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 0 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 0 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 1 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 0 to 1 01:50:08,624 PM [main] [WARN] MockRaftActorContext - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 3 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=2], SimpleReplicatedLogEntry [index=3, term=1, payload=3]]] 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Number of entries to be appended = 2 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 2 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 3 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Log size is now 4 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Commit index set to 3 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower, logLastIndex=3, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 2 for term 1 01:50:08,624 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 01:50:08,625 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 3 (of expected -1) 01:50:08,625 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 1, lastIndex(): 3 01:50:08,625 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 2 01:50:08,625 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to 2 01:50:08,625 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 3 01:50:08,625 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 2 to 3 01:50:08,625 PM [main] [DEBUG] MockRaftActorContext - follower: fakeSnapshot purging log to 1 for term 1 01:50:08,625 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior671#213608628] 01:50:08,636 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader672] 01:50:08,636 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower673] 01:50:08,838 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplyFailureWithFollowersLogTermDifferent 01:50:08,838 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:08,838 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 1 01:50:08,838 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:50:08,838 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to -1 01:50:08,839 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:08,839 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:08,839 PM [main] [INFO] MockRaftActorContext - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 01:50:08,839 PM [main] [INFO] MockRaftActorContext - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=1, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:50:08,839 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:50:08,839 PM [main] [INFO] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=1, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 01:50:08,839 PM [main] [INFO] MockRaftActorContext - leader (Leader): follower follower last log term 1 conflicts with the leader's 2 - dec next index to 0 01:50:08,839 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:08,839 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:50:08,839 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=0], SimpleReplicatedLogEntry [index=1, term=2, payload=1]]] 01:50:08,839 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=0], SimpleReplicatedLogEntry [index=1, term=2, payload=1]]] 01:50:08,839 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Number of entries to be appended = 2 01:50:08,839 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=0] is present: existingEntryTerm: 1 01:50:08,839 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:08,840 PM [main] [INFO] MockRaftActorContext - follower (Follower): Removing entries from log starting at 0, commitIndex: -1, lastApplied: -1 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 0 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 1 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Log size is now 2 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Commit index set to 1 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:08,840 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 0 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 0 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 1 01:50:08,840 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 0 to 1 01:50:08,840 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior674#1932452317] 01:50:08,851 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader675] 01:50:08,852 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower676] 01:50:09,55 PM [main] [INFO] LeaderTest - Starting testTransferLeadershipWithEmptyLog 01:50:09,55 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:09,55 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:09,55 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:09,55 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:50:09,55 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:09,56 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Attempting to transfer leadership 01:50:09,56 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:09,57 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: -1, lastIndex: -1, isVoting: true 01:50:09,57 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Follower's log matches - sending ElectionTimeout 01:50:09,57 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:09,57 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Leader transfer complete 01:50:09,57 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior677#-1928392912] 01:50:09,68 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader678] 01:50:09,68 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower679] 01:50:09,71 PM [main] [INFO] LeaderTest - Starting testSendAppendEntriesSnapshotScenario 01:50:09,71 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:09,71 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:09,71 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 3 01:50:09,71 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: MockIdentifier{value=state-id}, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:09,71 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:09,71 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 3 01:50:09,71 PM [main] [INFO] MockRaftActorContext - leader (Leader): Initiating install snapshot to follower follower: follower nextIndex: 2, leader snapshotIndex: 3, leader lastIndex: 4, leader log size: 1 01:50:09,71 PM [main] [INFO] MockRaftActorContext - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=3, lastAppliedTerm=1, lastIndex=4, lastTerm=2, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] to install on follower 01:50:09,71 PM [main] [DEBUG] MockRaftActorContext - leader: lastSequenceNumber prior to capture: -1 01:50:09,72 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior680#-134680948] 01:50:09,82 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader681] 01:50:09,82 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower682] 01:50:09,84 PM [main] [INFO] LeaderTest - Starting testLeaderCreatedWithCommitIndexLessThanLastIndex 01:50:09,84 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:09,84 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:50:09,85 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:09,85 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:50:09,85 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:50:09,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior683#1574634177] 01:50:09,95 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader684] 01:50:09,96 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower685] 01:50:09,98 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplySuccess 01:50:09,98 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:09,98 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 1 01:50:09,98 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:09,98 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:50:09,98 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 01:50:09,98 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:50:09,98 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 2 01:50:09,98 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:50:09,98 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 1 for term 1 01:50:09,98 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:50:09,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior686#-1449606722] 01:50:09,109 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader687] 01:50:09,109 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower688] 01:50:09,111 PM [main] [INFO] LeaderTest - Starting testIsolatedLeaderCheckNoVotingFollowers 01:50:09,111 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:50:09,111 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:09,111 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:09,112 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:09,112 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:50:09,112 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior689#1217892336] 01:50:09,114 PM [test-akka.actor.default-dispatcher-6] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft.SnapshotManager$AbstractSnapshotState.doTrimLog(SnapshotManager.java:273) at org.opendaylight.controller.cluster.raft.SnapshotManager$Idle.trimLog(SnapshotManager.java:358) [ERROR] [09/04/2024 13:50:09.112] [test-akka.actor.internal-dispatcher-3] [akka://test/user/follower691] Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior.getReplicatedToAllIndex()" because "currentBehavior" is null at org.opendaylight.controller.cluster.raft.SnapshotManager$AbstractSnapshotState.doTrimLog(SnapshotManager.java:273) at org.opendaylight.controller.cluster.raft.SnapshotManager$Idle.trimLog(SnapshotManager.java:358) at org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:122) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.performSnapshotWithoutCapture(AbstractRaftActorBehavior.java:484) at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:227) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.appendEntries(AbstractRaftActorBehavior.java:142) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.handleMessage(AbstractRaftActorBehavior.java:415) at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:485) at org.opendaylight.controller.cluster.raft.utils.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at akka.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:332) at akka.actor.Actor.aroundReceive(Actor.scala:537) at akka.actor.Actor.aroundReceive$(Actor.scala:535) at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:220) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:579) at akka.actor.ActorCell.invoke(ActorCell.scala:547) at akka.testkit.CallingThreadDispatcher.process$1(CallingThreadDispatcher.scala:282) at akka.testkit.CallingThreadDispatcher.runQueue(CallingThreadDispatcher.scala:315) at akka.testkit.CallingThreadDispatcher.dispatch(CallingThreadDispatcher.scala:236) at akka.actor.dungeon.Dispatch.sendMessage(Dispatch.scala:163) at akka.actor.dungeon.Dispatch.sendMessage$(Dispatch.scala:157) at akka.actor.ActorCell.sendMessage(ActorCell.scala:410) at akka.actor.Cell.sendMessage(ActorCell.scala:326) at akka.actor.Cell.sendMessage$(ActorCell.scala:325) at akka.actor.ActorCell.sendMessage(ActorCell.scala:410) at akka.actor.LocalActorRef.$bang(ActorRef.scala:448) at akka.actor.ActorRef.tell(ActorRef.scala:131) at akka.actor.ActorSelection$.rec$1(ActorSelection.scala:258) at akka.actor.ActorSelection$.deliverSelection(ActorSelection.scala:291) at akka.actor.ActorSelection.tell(ActorSelection.scala:50) at org.opendaylight.controller.cluster.raft.behaviors.AbstractLeader.sendAppendEntriesToFollower(AbstractLeader.java:878) at org.opendaylight.controller.cluster.raft.behaviors.AbstractLeader.sendUpdatesToFollower(AbstractLeader.java:775) at org.opendaylight.controller.cluster.raft.behaviors.AbstractLeader.sendAppendEntries(AbstractLeader.java:684) at org.opendaylight.controller.cluster.raft.behaviors.AbstractLeader.(AbstractLeader.java:137) at org.opendaylight.controller.cluster.raft.behaviors.Leader.(Leader.java:61) at org.opendaylight.controller.cluster.raft.behaviors.Leader.(Leader.java:65) at org.opendaylight.controller.cluster.raft.behaviors.LeaderTest.testIsolatedLeaderCheckNoVotingFollowers(LeaderTest.java:1908) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at org.junit.runner.JUnitCore.run(JUnitCore.java:115) at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:42) at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:80) at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:72) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85) at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47) at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:122) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495) at org.opendaylight.controller.cluster.raft.SnapshotManager.trimLog(SnapshotManager.java:122) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.performSnapshotWithoutCapture(AbstractRaftActorBehavior.java:484) at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:227) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.appendEntries(AbstractRaftActorBehavior.java:142) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.handleMessage(AbstractRaftActorBehavior.java:415) at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:485) at org.opendaylight.controller.cluster.raft.utils.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at akka.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:332) at akka.actor.Actor.aroundReceive(Actor.scala:537) at akka.actor.Actor.aroundReceive$(Actor.scala:535) at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:220) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:579) at akka.actor.ActorCell.invoke(ActorCell.scala:547) at akka.testkit.CallingThreadDispatcher.process$1(CallingThreadDispatcher.scala:282) at akka.testkit.CallingThreadDispatcher.runQueue(CallingThreadDispatcher.scala:315) at akka.testkit.CallingThreadDispatcher.dispatch(CallingThreadDispatcher.scala:236) at akka.actor.dungeon.Dispatch.sendMessage(Dispatch.scala:163) at akka.actor.dungeon.Dispatch.sendMessage$(Dispatch.scala:157) at akka.actor.ActorCell.sendMessage(ActorCell.scala:410) at akka.actor.Cell.sendMessage(ActorCell.scala:326) at akka.actor.Cell.sendMessage$(ActorCell.scala:325) at akka.actor.ActorCell.sendMessage(ActorCell.scala:410) at akka.actor.LocalActorRef.$bang(ActorRef.scala:448) at akka.actor.ActorRef.tell(ActorRef.scala:131) at akka.actor.ActorSelection$.rec$1(ActorSelection.scala:258) at akka.actor.ActorSelection$.deliverSelection(ActorSelection.scala:291) at akka.actor.ActorSelection.tell(ActorSelection.scala:50) at org.opendaylight.controller.cluster.raft.behaviors.AbstractLeader.sendAppendEntriesToFollower(AbstractLeader.java:878) at org.opendaylight.controller.cluster.raft.behaviors.AbstractLeader.sendUpdatesToFollower(AbstractLeader.java:775) at org.opendaylight.controller.cluster.raft.behaviors.AbstractLeader.sendAppendEntries(AbstractLeader.java:684) at org.opendaylight.controller.cluster.raft.behaviors.AbstractLeader.(AbstractLeader.java:137) at org.opendaylight.controller.cluster.raft.behaviors.Leader.(Leader.java:61) at org.opendaylight.controller.cluster.raft.behaviors.Leader.(Leader.java:65) at org.opendaylight.controller.cluster.raft.behaviors.LeaderTest.testIsolatedLeaderCheckNoVotingFollowers(LeaderTest.java:1908) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at org.junit.runner.JUnitCore.run(JUnitCore.java:115) at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:42) at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:80) at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:72) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85) at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47) at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:122) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495) 01:50:09,123 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader690] 01:50:09,123 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower691] 01:50:09,124 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplyFailureWithFollowersLogEmpty 01:50:09,124 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:09,124 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 1 01:50:09,124 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:50:09,124 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to -1 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:09,125 PM [main] [INFO] MockRaftActorContext - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 01:50:09,125 PM [main] [INFO] MockRaftActorContext - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=1, success=false, followerId=follower, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:50:09,125 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:50:09,125 PM [main] [INFO] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=1, success=false, followerId=follower, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:50:09,125 PM [main] [INFO] MockRaftActorContext - leader (Leader): follower follower appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=0], SimpleReplicatedLogEntry [index=1, term=1, payload=1]]] 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=0], SimpleReplicatedLogEntry [index=1, term=1, payload=1]]] 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Number of entries to be appended = 2 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 0 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 1 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Log size is now 2 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Commit index set to 1 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:09,125 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 0 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 0 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 1 01:50:09,125 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 0 to 1 01:50:09,126 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior692#558842749] 01:50:09,136 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader693] 01:50:09,136 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower694] 01:50:09,138 PM [main] [INFO] LeaderTest - Starting testHandleReplicateMessageCommitIndexIncrementedBeforeConsensus 01:50:09,138 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:09,138 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:09,138 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:09,138 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:09,139 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:09,139 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:09,139 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:09,139 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 2 01:50:09,139 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:50:09,139 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:50:09,139 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:09,139 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=foo]]] 01:50:09,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior695#-395037247] 01:50:09,150 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader696] 01:50:09,150 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower697] 01:50:09,153 PM [main] [INFO] LeaderTest - Starting testIsolatedLeaderCheckNoFollowers 01:50:09,153 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:09,153 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:09,153 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior698#1087430755] 01:50:09,164 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader699] 01:50:09,164 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower700] 01:50:09,166 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplyWithNewerTerm 01:50:09,166 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:09,166 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:09,166 PM [main] [INFO] MockRaftActorContext - leader (Leader): Term 20 in "AppendEntriesReply [term=20, success=false, followerId=foo, logLastIndex=1000, logLastTerm=10, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=1, raftVersion=5, recipientRaftVersion=5]" message is greater than leader's term 1 - switching to Follower 01:50:09,166 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:09,166 PM [main] [INFO] MockRaftActorContext - leader (Leader) :- Switching from behavior Leader to Follower, election term: 20 01:50:09,166 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior701#1368311160] 01:50:09,177 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader702] 01:50:09,177 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower703] 01:50:09,379 PM [main] [INFO] LeaderTest - Starting testTransferLeadershipWithFollowerInSync 01:50:09,379 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:09,379 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to -1 01:50:09,380 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:09,380 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:09,380 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:50:09,380 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 01:50:09,380 PM [main] [WARN] MockRaftActorContext - leader (Leader): Missing index 0 from log. Cannot apply state. Ignoring 0 to 1 01:50:09,380 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:09,380 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:09,380 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:09,380 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:50:09,380 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:50:09,380 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=foo]]] 01:50:09,380 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:50:09,380 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 01:50:09,380 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 0 01:50:09,380 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 0 01:50:09,380 PM [main] [WARN] MockRaftActorContext - leader (Leader): Missing index 1 from log. Cannot apply state. Ignoring 1 to 1 01:50:09,381 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:50:09,381 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Attempting to transfer leadership 01:50:09,381 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:50:09,382 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:50:09,382 PM [main] [WARN] MockRaftActorContext - leader (Leader): Missing index 1 from log. Cannot apply state. Ignoring 1 to 1 01:50:09,382 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: 0, lastIndex: 0, isVoting: true 01:50:09,382 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Follower's log matches - sending ElectionTimeout 01:50:09,382 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:50:09,382 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Leader transfer complete 01:50:09,382 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior704#1256438603] 01:50:09,393 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader705] 01:50:09,393 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower706] 01:50:09,596 PM [main] [INFO] LeaderTest - Starting testInitiateForceInstallSnapshot 01:50:09,596 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:09,596 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 3 01:50:09,597 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:09,597 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:09,598 PM [main] [INFO] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=1, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=1, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 01:50:09,598 PM [main] [INFO] MockRaftActorContext - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=3, lastAppliedTerm=1, lastIndex=4, lastTerm=2, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] to install on follower 01:50:09,598 PM [main] [DEBUG] MockRaftActorContext - leader: lastSequenceNumber prior to capture: -1 01:50:09,598 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: MockIdentifier{value=state-id}, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:09,598 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:09,598 PM [main] [INFO] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=1, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=1, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 01:50:09,599 PM [main] [DEBUG] MockRaftActorContext - captureToInstall should not be called in state Creating 01:50:09,599 PM [main] [INFO] MockRaftActorContext - leader: Persisting of snapshot done: Snapshot [lastIndex=4, lastTerm=2, lastAppliedIndex=3, lastAppliedTerm=1, unAppliedEntries size=1, state=ByteState [bytes=[1, 2, 3]], electionTerm=1, electionVotedFor=, ServerConfigPayload=null] 01:50:09,599 PM [main] [INFO] MockRaftActorContext - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:50:09,599 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendInstallSnapshot 01:50:09,599 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 3 bytes, total chunks to send: 1 01:50:09,599 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=3, offset=0, size=3, hashCode=30817 01:50:09,599 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 3 01:50:09,599 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower709), Chunk: 1/1 01:50:09,599 PM [main] [INFO] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=1, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=1, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 01:50:09,800 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior707#-1408725018] 01:50:09,811 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader708] 01:50:09,811 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower709] 01:50:09,813 PM [main] [INFO] LeaderTest - Starting testLeaderCreatedWithCommitIndexLessThanFollowersCommitIndex 01:50:09,813 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:09,813 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:50:09,814 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:09,814 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:50:09,814 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:50:09,814 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 01:50:09,814 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:50:09,814 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 2 01:50:09,814 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:50:09,814 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 1 for term 1 01:50:09,814 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:50:09,814 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 01:50:09,814 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:50:09,814 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 2 01:50:09,814 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to 2 01:50:09,814 PM [main] [DEBUG] MockRaftActorContext - follower: fakeSnapshot purging log to 1 for term 1 01:50:09,865 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 01:50:09,865 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior710#-157954829] 01:50:09,876 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader711] 01:50:09,876 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower712] 01:50:09,884 PM [main] [INFO] LeaderTest - Starting testTransferLeadershipWithFollowerSyncTimeout 01:50:09,884 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:09,884 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:09,884 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:09,884 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:50:09,884 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:09,885 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:09,885 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:09,885 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:50:09,885 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:50:09,885 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=foo]]] 01:50:09,885 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Attempting to transfer leadership 01:50:09,885 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:50:09,885 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:50:10,87 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:50:10,87 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=foo]]] 01:50:10,288 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Leadership transfer expired 01:50:10,389 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior713#64615232] 01:50:10,400 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader714] 01:50:10,401 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower715] 01:50:10,503 PM [main] [INFO] LeaderTest - Starting testSendingReplicateImmediatelyAfterHeartbeatDoesReplicate 01:50:10,503 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:10,507 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:10,507 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:10,507 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:10,507 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:10,507 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:10,657 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:10,657 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:10,658 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:50:10,658 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:10,658 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=foo]]] 01:50:10,658 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior716#2103498626] 01:50:10,669 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader717] 01:50:10,669 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower718] 01:50:10,671 PM [main] [INFO] LeaderTest - Starting testLeaderInstallSnapshotState 01:50:10,671 PM [main] [DEBUG] LeaderInstallSnapshotState - test: Snapshot 106 bytes, total chunks to send: 3 01:50:10,671 PM [main] [DEBUG] LeaderInstallSnapshotState - test: Next chunk: total length=106, offset=0, size=50, hashCode=-65379387 01:50:10,672 PM [main] [DEBUG] LeaderInstallSnapshotState - test: Next chunk: total length=106, offset=50, size=50, hashCode=-2011893223 01:50:10,672 PM [main] [DEBUG] LeaderInstallSnapshotState - test: Next chunk: total length=106, offset=100, size=6, hashCode=-1840245320 01:50:10,672 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior719#-315390397] 01:50:10,682 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader720] 01:50:10,682 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower721] 01:50:10,684 PM [main] [INFO] LeaderTest - Starting testIsolatedLeaderCheckTwoFollowersWhenElectionsAreDisabled 01:50:10,684 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:10,685 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower-2, follower-1] 01:50:10,685 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower-2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:10,685 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower-1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:10,696 PM [main] [WARN] MockRaftActorContext - leader: At least 1 followers need to be active, Switching leader from Leader to IsolatedLeader 01:50:10,696 PM [main] [DEBUG] MockRaftActorContext - leader (IsolatedLeader): Election: Leader has following peers: [follower-2, follower-1] 01:50:10,696 PM [main] [DEBUG] MockRaftActorContext - leader (IsolatedLeader): Checking sendAppendEntries for follower follower-2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:10,696 PM [main] [DEBUG] MockRaftActorContext - leader (IsolatedLeader): Checking sendAppendEntries for follower follower-1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:10,696 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior722#1438163154] [WARN] [09/04/2024 13:50:10.696] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower-2] received dead letter from TestActor[akka://test/user/leader723]: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [09/04/2024 13:50:10.696] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower-1] received dead letter from TestActor[akka://test/user/leader723]: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [INFO] [akkaDeadLetter][09/04/2024 13:50:10.696] [test-akka.actor.default-dispatcher-9] [akka://test/user/follower-2] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader723] to Actor[akka://test/user/follower-2] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/follower-2] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [akkaDeadLetter][09/04/2024 13:50:10.696] [test-akka.actor.default-dispatcher-9] [akka://test/user/follower-1] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader723] to Actor[akka://test/user/follower-1] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/follower-1] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:50:10,696 PM [test-akka.actor.default-dispatcher-9] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader723] to Actor[akka://test/user/follower-2] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/follower-2] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:50:10,696 PM [test-akka.actor.default-dispatcher-9] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader723] to Actor[akka://test/user/follower-1] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/follower-1] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:50:10,706 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader723] 01:50:10,707 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower724] 01:50:10,709 PM [main] [INFO] LeaderTest - Starting testDuplicateAppendEntriesWillBeSentOnHeartBeat 01:50:10,709 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:10,710 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:10,710 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:10,710 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:10,710 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:10,710 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:10,710 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:10,710 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:10,710 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:50:10,710 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:10,711 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=foo]]] [WARN] [09/04/2024 13:50:10.758] [test-akka.actor.default-dispatcher-9] [akka://test/user/leader723] received dead letter from TestActor[akka://test/user/leader723]: org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat@4c37b77e [INFO] [akkaDeadLetter][09/04/2024 13:50:10.758] [test-akka.actor.default-dispatcher-6] [akka://test/user/leader723] Message [org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat] from TestActor[akka://test/user/leader723] to TestActor[akka://test/user/leader723] was not delivered. [3] dead letters encountered. If this is not an expected behavior then TestActor[akka://test/user/leader723] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:50:10,758 PM [test-akka.actor.default-dispatcher-9] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat] from TestActor[akka://test/user/leader723] to TestActor[akka://test/user/leader723] was not delivered. [3] dead letters encountered. If this is not an expected behavior then TestActor[akka://test/user/leader723] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:50:11,461 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:11,461 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=foo]]] 01:50:11,461 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior725#-1837706423] 01:50:11,472 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader726] 01:50:11,473 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower727] 01:50:11,476 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplyWithNewerTermWhenElectionsAreDisabled 01:50:11,476 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:11,476 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:11,476 PM [main] [INFO] MockRaftActorContext - leader (Leader): Term 20 in "AppendEntriesReply [term=20, success=false, followerId=foo, logLastIndex=1000, logLastTerm=10, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=1, raftVersion=5, recipientRaftVersion=5]" message is greater than leader's term 1 - switching to Follower 01:50:11,476 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior728#-1261287421] 01:50:11,487 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader729] 01:50:11,487 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower730] 01:50:11,489 PM [main] [INFO] LeaderTest - Starting testLargePayloadSlicingExpiration 01:50:11,489 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:11,489 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to -1 01:50:11,489 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:11,489 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:11,490 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:50:11,490 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:11,490 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:11,490 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:11,490 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:50:11,490 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:50:11,490 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Log entry size 11 exceeds max payload size 10 01:50:11,490 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Serializing AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=large]]] for slicing for follower follower 01:50:11,490 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Slicing stream for index 0, follower follower 01:50:11,841 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): On SharedFileBackedOutputStream cleanup for index 0 01:50:11,841 PM [main] [WARN] MessageSlicer - leader (Leader)_slicer-id-140: SlicedMessageState for MessageSliceIdentifier [clientIdentifier=FollowerIdentifier{value=follower}, slicerId=140, messageId=3] was expired from the cache 01:50:11,844 PM [main] [ERROR] MockRaftActorContext - leader (Leader): Error slicing AppendEntries for follower follower java.lang.RuntimeException: The slicing state for message identifier MessageSliceIdentifier [clientIdentifier=FollowerIdentifier{value=follower}, slicerId=140, messageId=3] was expired due to inactivity from the assembling component on the other end at org.opendaylight.controller.cluster.messaging.MessageSlicer.stateRemoved(MessageSlicer.java:300) at com.google.common.cache.LocalCache.processPendingNotifications(LocalCache.java:1851) at com.google.common.cache.LocalCache$Segment.runUnlockedCleanup(LocalCache.java:3508) at com.google.common.cache.LocalCache$Segment.cleanUp(LocalCache.java:3490) at com.google.common.cache.LocalCache.cleanUp(LocalCache.java:3955) at com.google.common.cache.LocalCache$LocalManualCache.cleanUp(LocalCache.java:4996) at org.opendaylight.controller.cluster.messaging.MessageSlicer.checkExpiredSlicedMessageState(MessageSlicer.java:191) at org.opendaylight.controller.cluster.raft.behaviors.AbstractLeader.sendHeartBeat(AbstractLeader.java:1041) at org.opendaylight.controller.cluster.raft.behaviors.AbstractLeader.handleMessage(AbstractLeader.java:533) at org.opendaylight.controller.cluster.raft.behaviors.Leader.handleMessage(Leader.java:81) at org.opendaylight.controller.cluster.raft.behaviors.LeaderTest.testLargePayloadSlicingExpiration(LeaderTest.java:2376) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at org.junit.runner.JUnitCore.run(JUnitCore.java:115) at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:42) at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:80) at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:72) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85) at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47) at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148) at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:122) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495) 01:50:12,295 PM [main] [WARN] MockRaftActorContext - leader (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=1, success=true, followerId=follower, logLastIndex=-1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5], timeSinceLastActivity : 805, lastApplied : -1, commitIndex : -1 01:50:12,295 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:50:12,295 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Log entry size 11 exceeds max payload size 10 01:50:12,296 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Serializing AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=large]]] for slicing for follower follower 01:50:12,296 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Slicing stream for index 0, follower follower 01:50:12,296 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): On SharedFileBackedOutputStream cleanup for index 0 01:50:12,296 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior731#-1957709936] 01:50:12,307 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader732] 01:50:12,308 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower733] 01:50:12,410 PM [main] [INFO] LeaderTest - Starting testHeartbeatsAreAlwaysSentIfTheHeartbeatIntervalHasElapsed 01:50:12,410 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:12,412 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:12,412 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:12,412 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:12,412 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:12,412 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:12,863 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior734#1143209797] 01:50:12,874 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader735] 01:50:12,874 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower736] 01:50:12,876 PM [main] [INFO] LeaderTest - Starting testInitiateInstallSnapshot 01:50:12,876 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:12,876 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 3 01:50:12,876 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:12,876 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 3 01:50:12,877 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: MockIdentifier{value=state-id}, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:12,877 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:12,877 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 3 01:50:12,877 PM [main] [INFO] MockRaftActorContext - leader (Leader): Initiating install snapshot to follower follower: follower nextIndex: 2, leader snapshotIndex: 3, leader lastIndex: 4, leader log size: 1 01:50:12,877 PM [main] [INFO] MockRaftActorContext - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=3, lastAppliedTerm=1, lastIndex=4, lastTerm=2, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] to install on follower 01:50:12,877 PM [main] [DEBUG] MockRaftActorContext - leader: lastSequenceNumber prior to capture: -1 01:50:12,877 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: MockIdentifier{value=state-id}, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:12,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior737#1260274509] 01:50:12,888 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader738] 01:50:12,888 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower739] 01:50:12,890 PM [main] [INFO] LeaderTest - Starting testHandleReplicateMessageSendAppendEntriesToFollower 01:50:12,890 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:12,890 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:12,890 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:12,890 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:12,890 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:12,890 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:12,890 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:12,890 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:12,890 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:50:12,890 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:12,890 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=foo]]] 01:50:12,891 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior740#1345633839] 01:50:12,901 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader741] 01:50:12,901 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower742] 01:50:12,903 PM [main] [INFO] LeaderTest - Starting testForceInstallSnapshot 01:50:12,903 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:12,903 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 3 01:50:12,903 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:12,903 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:12,904 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendInstallSnapshot 01:50:12,904 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 106 bytes, total chunks to send: 1 01:50:12,904 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=0, size=106, hashCode=1072258452 01:50:12,904 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 106 01:50:12,904 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower745), Chunk: 1/1 01:50:12,904 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior743#-626538882] 01:50:12,914 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader744] 01:50:12,915 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower745] 01:50:12,916 PM [main] [INFO] LeaderTest - Starting testSendSnapshotfromInstallSnapshotReply 01:50:12,917 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:12,917 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:12,917 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:12,917 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendInstallSnapshot 01:50:12,917 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 106 bytes, total chunks to send: 3 01:50:12,917 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=0, size=50, hashCode=-65379387 01:50:12,917 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 50 01:50:12,917 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower748), Chunk: 1/3 01:50:12,917 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=2, followerId=follower, chunkIndex=1, success=true] 01:50:12,917 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=50, size=50, hashCode=-2011893223 01:50:12,917 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 50 01:50:12,917 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower748), Chunk: 2/3 01:50:12,917 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=2, followerId=follower, chunkIndex=2, success=true] 01:50:12,918 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=100, size=6, hashCode=-1840245320 01:50:12,918 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 6 01:50:12,918 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower748), Chunk: 3/3 01:50:12,918 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=2, followerId=follower, chunkIndex=3, success=true] 01:50:12,918 PM [main] [INFO] MockRaftActorContext - leader (Leader): Snapshot successfully installed on follower follower (last chunk 3) - matchIndex set to 3, nextIndex set to 4 01:50:12,918 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior746#-381329726] 01:50:12,928 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader747] 01:50:12,929 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower748] 01:50:13,31 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplyUnknownFollower 01:50:13,31 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:13,31 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:13,31 PM [main] [ERROR] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - unknown follower unkown-follower 01:50:13,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior749#-815012461] 01:50:13,42 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader750] 01:50:13,42 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower751] 01:50:13,44 PM [main] [INFO] LeaderTest - Starting testThatLeaderSendsAHeartbeatMessageToAllFollowers 01:50:13,44 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:13,44 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:13,44 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:13,44 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:50:13,44 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:13,44 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:13,44 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 1 is present for follower follower 01:50:13,44 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=2]]] 01:50:13,94 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 1 is present for follower follower 01:50:13,94 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=2]]] 01:50:13,95 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior752#2105415005] 01:50:13,105 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader753] 01:50:13,105 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower754] 01:50:13,207 PM [main] [INFO] LeaderTest - Starting testHandleReplicateMessageWithHigherTermThanPreviousEntry 01:50:13,207 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:13,207 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to -1 01:50:13,207 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Not updating commit index to 1 - retrieved log entry with index 1, term 1 does not match the current term 2 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:13,208 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=foo]]] 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Not updating commit index to 1 - retrieved log entry with index 1, term 1 does not match the current term 2 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: -1 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 0 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 0 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 1 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 0 to 1 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 2 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 1 for term 2 01:50:13,208 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:50:13,208 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior755#-543839623] 01:50:13,218 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader756] 01:50:13,219 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower757] 01:50:13,220 PM [main] [INFO] LeaderTest - Starting testMultipleReplicateWithReplyShouldResultInAppendEntries 01:50:13,220 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:13,221 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=foo]]] 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 2 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 1 for term 1 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 3, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 3 is present for follower follower 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=1, payload=foo]]] 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 3 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 2 to 3 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 2 for term 1 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 01:50:13,221 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 2 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 4 is present for follower follower 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=1, payload=foo]]] 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 4, nextIndex: 5 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 4 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 3 to 4 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 3 for term 1 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: 3 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 5, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 5, leaderLastIndex: 5, leaderSnapShotIndex: 3 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 5 is present for follower follower 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=4, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=1, payload=foo]]] 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 6, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 5, leaderLastIndex: 6, leaderSnapShotIndex: 3 01:50:13,222 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 5 is present for follower follower 01:50:13,222 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior758#-2110129850] 01:50:13,232 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader759] 01:50:13,232 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower760] 01:50:13,334 PM [main] [INFO] LeaderTest - Starting testReplicationConsensusWithNonVotingFollower 01:50:13,334 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:13,334 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to -1 01:50:13,335 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower, nonvoting-follower] 01:50:13,335 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:13,335 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower nonvoting-follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:13,335 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:13,335 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:13,335 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:50:13,335 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower nonvoting-follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:50:13,335 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:50:13,335 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:50:13,335 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 0 01:50:13,335 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 0 01:50:13,335 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:50:13,336 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for nonvoting-follower updated: matchIndex: 0, nextIndex: 1 01:50:13,336 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower nonvoting-follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:50:13,336 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:13,336 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:13,336 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 1 is present for follower follower 01:50:13,336 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=foo]]] 01:50:13,336 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower nonvoting-follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:13,336 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 1 is present for follower nonvoting-follower 01:50:13,336 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower nonvoting-follower: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=foo]]] 01:50:13,336 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for nonvoting-follower updated: matchIndex: 1, nextIndex: 2 01:50:13,336 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower nonvoting-follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:13,838 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:13,838 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:50:13,838 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 1 01:50:13,838 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 0 to 1 01:50:13,838 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:13,838 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:13,838 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior761#1888733798] 01:50:13,849 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader762] 01:50:13,849 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower763] 01:50:13,850 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/nonvoting-follower764#-1590269714] 01:50:13,952 PM [main] [INFO] LeaderTest - Starting testHandleInstallSnapshotReplyLastChunk 01:50:13,952 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:13,952 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:13,952 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:13,952 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 106 bytes, total chunks to send: 1 01:50:13,952 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=2, followerId=follower, chunkIndex=1, success=true] 01:50:13,953 PM [main] [INFO] MockRaftActorContext - leader (Leader): Snapshot successfully installed on follower follower (last chunk 1) - matchIndex set to 3, nextIndex set to 4 01:50:13,953 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior765#-1493863367] 01:50:13,963 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader766] 01:50:13,963 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower767] 01:50:13,965 PM [main] [INFO] LeaderTest - Starting testSendAppendEntriesOnAnInProgressInstallSnapshot 01:50:13,965 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:13,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:13,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 2 01:50:13,966 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 79 bytes, total chunks to send: 8 01:50:13,966 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=79, offset=0, size=10, hashCode=1052414894 01:50:14,67 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=79, offset=10, size=10, hashCode=4695158 01:50:14,67 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 10 01:50:14,67 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower770), Chunk: 2/8 01:50:14,67 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior768#1122141004] 01:50:14,78 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader769] 01:50:14,78 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower770] 01:50:14,281 PM [main] [INFO] LeaderTest - Starting testHandleReplicateMessageSendAppendEntriesToFollower 01:50:14,281 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:14,282 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:14,283 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=foo]]] 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 3, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 0 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 0 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 5, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 5, leaderSnapShotIndex: 0 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 6, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 6, leaderSnapShotIndex: 0 01:50:14,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:14,283 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior771#840840080] 01:50:14,294 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader772] 01:50:14,294 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower773] 01:50:14,496 PM [main] [INFO] LeaderTest - Starting testHandleReplicateMessageWhenThereAreNoFollowers 01:50:14,497 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:14,497 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:14,497 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 0 01:50:14,497 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: MockIdentifier{value=state-id}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:14,497 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 1 01:50:14,497 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 0 to 1 01:50:14,497 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 2 01:50:14,497 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:50:14,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior774#934314467] 01:50:14,508 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader775] 01:50:14,508 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower776] 01:50:14,510 PM [main] [INFO] LeaderTest - Starting testIsolatedLeaderCheckTwoFollowers 01:50:14,510 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:14,510 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower-2, follower-1] 01:50:14,510 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower-2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:14,510 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower-1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:14,521 PM [main] [WARN] MockRaftActorContext - leader: At least 1 followers need to be active, Switching leader from Leader to IsolatedLeader 01:50:14,521 PM [main] [DEBUG] MockRaftActorContext - leader (IsolatedLeader): Election: Leader has following peers: [follower-2, follower-1] 01:50:14,522 PM [main] [DEBUG] MockRaftActorContext - leader (IsolatedLeader): Checking sendAppendEntries for follower follower-2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:14,522 PM [main] [DEBUG] MockRaftActorContext - leader (IsolatedLeader): Checking sendAppendEntries for follower follower-1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:14,522 PM [main] [INFO] MockRaftActorContext - leader (Leader) :- Switching from behavior Leader to IsolatedLeader, election term: 1 [WARN] [09/04/2024 13:50:14.522] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower-2] received dead letter from TestActor[akka://test/user/leader778]: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [09/04/2024 13:50:14.522] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower-1] received dead letter from TestActor[akka://test/user/leader778]: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:50:14,522 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior777#1618562780] 01:50:14,522 PM [test-akka.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader778] to Actor[akka://test/user/follower-2] was not delivered. [4] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/follower-2] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:50:14,522 PM [test-akka.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader778] to Actor[akka://test/user/follower-1] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/follower-1] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [akkaDeadLetter][09/04/2024 13:50:14.522] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower-2] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader778] to Actor[akka://test/user/follower-2] was not delivered. [4] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/follower-2] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [akkaDeadLetter][09/04/2024 13:50:14.522] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower-1] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader778] to Actor[akka://test/user/follower-1] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/follower-1] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:50:14,532 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader778] 01:50:14,533 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower779] 01:50:14,534 PM [main] [INFO] LeaderTest - Starting testHandleSnapshotSendsPreviousChunksHashCodeWhenSendingNextChunk 01:50:14,534 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:14,535 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:14,535 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:14,535 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendInstallSnapshot 01:50:14,535 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 106 bytes, total chunks to send: 3 01:50:14,535 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=0, size=50, hashCode=-65379387 01:50:14,535 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 50 01:50:14,535 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower782), Chunk: 1/3 01:50:14,535 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=2, followerId=follower, chunkIndex=1, success=true] 01:50:14,535 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=50, size=50, hashCode=-2011893223 01:50:14,535 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 50 01:50:14,535 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower782), Chunk: 2/3 01:50:14,535 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior780#507830003] 01:50:14,546 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader781] 01:50:14,546 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower782] 01:50:14,548 PM [main] [INFO] LeaderTest - Starting testReplicationWithPayloadSizeThatExceedsThreshold 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to -1 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:14,548 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=foo]]] 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 0 01:50:14,548 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 0 01:50:14,549 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:50:14,549 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:14,549 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:50:14,549 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 1 is present for follower follower 01:50:14,549 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Log entry size 269 exceeds max payload size 219 01:50:14,549 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Serializing AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=large]]] for slicing for follower follower 01:50:14,549 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Slicing stream for index 1, follower follower [WARN] [09/04/2024 13:50:14.588] [test-akka.actor.default-dispatcher-12] [akka://test/user/leader778] received dead letter from TestActor[akka://test/user/leader778]: org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat@4c37b77e [INFO] [akkaDeadLetter][09/04/2024 13:50:14.588] [test-akka.actor.default-dispatcher-9] [akka://test/user/leader778] Message [org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat] from TestActor[akka://test/user/leader778] to TestActor[akka://test/user/leader778] was not delivered. [6] dead letters encountered. If this is not an expected behavior then TestActor[akka://test/user/leader778] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:50:14,588 PM [test-akka.actor.default-dispatcher-12] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat] from TestActor[akka://test/user/leader778] to TestActor[akka://test/user/leader778] was not delivered. [6] dead letters encountered. If this is not an expected behavior then TestActor[akka://test/user/leader778] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:50:14,850 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): On SharedFileBackedOutputStream cleanup for index 1 01:50:14,850 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:50:14,850 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:50:14,850 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 1 01:50:14,850 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 0 to 1 01:50:14,850 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:50:14,850 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:50:14,850 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:50:14,850 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:50:14,850 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:50:14,850 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=foo]]] 01:50:14,850 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior783#-1982596307] 01:50:14,861 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader784] 01:50:14,861 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower785] 01:50:15,64 PM [main] [INFO] LeaderTest - Starting testLeaderSchedulesHeartbeatsEvenWhenNoFollowersRespondToInitialAppendEntries 01:50:15,166 PM [main] [DEBUG] MockRaftActorContext - leader789: Moving last applied index from -1 to 1 01:50:15,166 PM [main] [DEBUG] MockRaftActorContext - leader789 (Leader): Election: Leader has following peers: [follower791, follower790] 01:50:15,166 PM [main] [DEBUG] MockRaftActorContext - leader789 (Leader): Checking sendAppendEntries for follower follower791: active: false, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:50:15,166 PM [main] [DEBUG] MockRaftActorContext - leader789 (Leader): Checking sendAppendEntries for follower follower790: active: false, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:50:16,167 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior786#1950687484] 01:50:16,178 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader787] 01:50:16,178 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower788] 01:50:16,178 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader789] 01:50:16,178 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower790#2058140584] 01:50:16,179 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower791#-1402300019] 01:50:16,181 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:16,181 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:16,181 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 01:50:16,181 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:50:16,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior792#-1913891521] 01:50:16,192 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader793] 01:50:16,192 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower794] 01:50:16,194 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:16,194 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:16,194 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntries: AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 01:50:16,194 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior795#792714025] 01:50:16,205 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader796] 01:50:16,205 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower797] [WARN] [09/04/2024 13:50:16.258] [test-akka.actor.default-dispatcher-7] [akka://test/user/leader789] received dead letter from TestActor[akka://test/user/leader789]: org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat@4c37b77e [INFO] [akkaDeadLetter][09/04/2024 13:50:16.258] [test-akka.actor.default-dispatcher-7] [akka://test/user/leader789] Message [org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat] from TestActor[akka://test/user/leader789] to TestActor[akka://test/user/leader789] was not delivered. [7] dead letters encountered. If this is not an expected behavior then TestActor[akka://test/user/leader789] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:50:16,258 PM [test-akka.actor.default-dispatcher-7] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat] from TestActor[akka://test/user/leader789] to TestActor[akka://test/user/leader789] was not delivered. [7] dead letters encountered. If this is not an expected behavior then TestActor[akka://test/user/leader789] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:50:16,307 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:16,307 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:16,307 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 01:50:16,307 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:50:16,308 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior798#-1752773909] 01:50:16,318 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader799] 01:50:16,319 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower800] 01:50:16,522 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:16,522 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:16,522 PM [main] [INFO] MockRaftActorContext - leader (Leader): 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 leader's term 1 - switching to Follower 01:50:16,522 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:50:16,522 PM [main] [INFO] MockRaftActorContext - leader (Leader) :- Switching from behavior Leader to Follower, election term: 100 01:50:16,522 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:16,522 PM [main] [INFO] MockRaftActorContext - leader (Leader): 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 leader's term 1 - switching to Follower 01:50:16,523 PM [main] [INFO] MockRaftActorContext - leader (Leader) :- Switching from behavior Leader to Follower, election term: 100 01:50:16,523 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:16,523 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:50:16,523 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Cluster state: [] 01:50:16,523 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Candidate in requestVote:RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100] with higher term appears reachable, updating term. 01:50:16,523 PM [main] [INFO] MockRaftActorContext - leader (Leader): Term 100 in "RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100]" message is greater than leader's term 1 - switching to Follower 01:50:16,523 PM [main] [INFO] MockRaftActorContext - leader (Leader) :- Switching from behavior Leader to Follower, election term: 100 01:50:16,523 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:16,523 PM [main] [INFO] MockRaftActorContext - leader (Leader): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than leader's term 1 - switching to Follower 01:50:16,523 PM [main] [INFO] MockRaftActorContext - leader (Leader) :- Switching from behavior Leader to Follower, election term: 100 01:50:16,523 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior801#1865751226] 01:50:16,534 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader802] 01:50:16,534 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower803] 01:50:16,737 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:50:16,737 PM [main] [DEBUG] MockRaftActorContext - test (Leader): Election: Leader has following peers: [] 01:50:16,737 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from 1 to 0 01:50:16,737 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from 0 to 0 01:50:16,737 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from 0 to 1 01:50:16,737 PM [main] [DEBUG] MockRaftActorContext - test: fakeSnapshot purging log to 0 for term 1 01:50:16,737 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from 1 to 2 01:50:16,737 PM [main] [DEBUG] MockRaftActorContext - test: fakeSnapshot purging log to 1 for term 1 01:50:16,737 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from 2 to 2 01:50:16,737 PM [main] [DEBUG] MockRaftActorContext - test: fakeSnapshot purging log to 1 for term 1 01:50:16,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior804#-866619621] 01:50:16,748 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader805] 01:50:16,749 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower806] 01:50:16,851 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:16,851 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:16,851 PM [main] [INFO] MockRaftActorContext - leader (Leader): Cannot append entries because sender's term 100 is less than 1000 01:50:16,851 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior807#-1650763436] 01:50:16,862 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader808] 01:50:16,862 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower809] 01:50:16,864 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:50:16,864 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:50:16,864 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 01:50:16,864 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): requestVote returning: RequestVoteReply [term=1000, voteGranted=false] 01:50:16,865 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior810#1644400305] 01:50:16,875 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader811] 01:50:16,876 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower812] [INFO] [09/04/2024 13:50:16.876] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [09/04/2024 13:50:16.877] [test-akka.actor.default-dispatcher-7] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.72:25520) 01:50:16,877 PM [test-akka.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [akkaDeadLetter][09/04/2024 13:50:16.877] [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#921725904] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:50:16,878 PM [test-akka.actor.default-dispatcher-7] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#921725904] was unhandled. [8] 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] [09/04/2024 13:50:16.878] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.72:25520] - Exiting completed [INFO] [09/04/2024 13:50:16.878] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.72:25520] - Shutting down... 01:50:16,878 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.72:25520] - Exiting completed 01:50:16,878 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.72:25520] - Shutting down... [INFO] [09/04/2024 13:50:16.878] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.72:25520] - Successfully shut down 01:50:16,878 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.72:25520] - Successfully shut down [INFO] [09/04/2024 13:50:16.879] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.72:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [09/04/2024 13:50:16.879] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.72:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:50:16,880 PM [test-akka.actor.default-dispatcher-9] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:50:16,880 PM [test-akka.actor.default-dispatcher-9] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports.