[DEBUG] [03/06/2024 13:48:45.807] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:48:45,808 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/06/2024 13:48:45.808] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/06/2024 13:48:45.808] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/06/2024 13:48:45.836] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.2:25520] with UID [5964186163835752722] [INFO] [03/06/2024 13:48:45.837] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.2:25520] - Starting up, Akka version [2.6.21] ... 01:48:45,838 PM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.2:25520] with UID [5964186163835752722] 01:48:45,838 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.2:25520] - Starting up, Akka version [2.6.21] ... 01:48:45,846 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.2:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:48:45,846 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.2:25520] - Started up successfully [INFO] [03/06/2024 13:48:45.844] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.2:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/06/2024 13:48:45.844] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.2:25520] - Started up successfully 01:48:45,865 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.2:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:48:45,866 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.2:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [03/06/2024 13:48:45.865] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.2:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/06/2024 13:48:45.865] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.2:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:48:46,67 PM [main] [INFO] LeaderTest - Starting testHandleMessageForUnknownMessage 01:48:46,67 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:46,67 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:46,67 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior67#-394227930] 01:48:46,80 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader68] 01:48:46,80 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower69] 01:48:46,95 PM [main] [INFO] LeaderTest - Starting testLaggingFollowerStarvation 01:48:46,102 PM [main] [DEBUG] MockRaftActorContext - leader73: Moving last applied index from -1 to 1 01:48:46,103 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): Election: Leader has following peers: [follower75, follower74] 01:48:46,103 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): Checking sendAppendEntries for follower follower75: active: false, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:48:46,103 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): Checking sendAppendEntries for follower follower74: active: false, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:48:46,103 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower74 updated: matchIndex: 1, nextIndex: 2 01:48:46,103 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): Checking sendAppendEntries for follower follower74: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:48:46,103 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): sendAppendEntries: 2 is present for follower follower74 01:48:46,103 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): Sending AppendEntries to follower follower74: AppendEntries [leaderId=leader73, 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:48:46,304 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower74 updated: matchIndex: 2, nextIndex: 3 01:48:46,304 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:48:46,304 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): Setting last applied to 2 01:48:46,304 PM [main] [DEBUG] MockRaftActorContext - leader73: Moving last applied index from 1 to 2 01:48:46,304 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): Checking sendAppendEntries for follower follower74: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:48:46,304 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): sendAppendEntries: 3 is present for follower follower74 01:48:46,304 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): Sending AppendEntries to follower follower74: AppendEntries [leaderId=leader73, 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:48:46,505 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower74 updated: matchIndex: 3, nextIndex: 4 01:48:46,505 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 01:48:46,505 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): Setting last applied to 3 01:48:46,505 PM [main] [DEBUG] MockRaftActorContext - leader73: Moving last applied index from 2 to 3 01:48:46,505 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): Checking sendAppendEntries for follower follower74: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:48:46,505 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): sendAppendEntries: 4 is present for follower follower74 01:48:46,705 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower74 updated: matchIndex: 4, nextIndex: 5 01:48:46,706 PM [main] [DEBUG] MockRaftActorContext - leader73 (Leader): Checking sendAppendEntries for follower follower74: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:48:46,906 PM [main] [INFO] MockRaftActorContext - leader73 (Leader): handleAppendEntriesReply: follower follower74 lastIndex 5 is ahead of our lastIndex 4 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 01:48:46,906 PM [main] [INFO] MockRaftActorContext - leader73: 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 follower74 01:48:46,906 PM [main] [DEBUG] MockRaftActorContext - leader73: lastSequenceNumber prior to capture: -1 01:48:47,110 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior70#-934723709] 01:48:47,122 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader71] 01:48:47,122 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower72] 01:48:47,123 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower74#-1031538434] 01:48:47,123 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower75#-88197892] 01:48:47,128 PM [main] [INFO] LeaderTest - Starting testHandleInstallSnapshotReplyWithInvalidChunkIndex 01:48:47,128 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:47,129 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:47,129 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:48,136 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendInstallSnapshot 01:48:48,136 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 106 bytes, total chunks to send: 3 01:48:48,136 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=0, size=50, hashCode=-65379387 01:48:48,136 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 50 01:48:48,136 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower78), Chunk: 1/3 01:48:48,141 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=2, followerId=follower, chunkIndex=-1, success=false] 01:48:48,141 PM [main] [ERROR] MockRaftActorContext - leader (Leader): Chunk index -1 in InstallSnapshotReply from follower follower does not match expected index 1 01:48:48,242 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=0, size=50, hashCode=-65379387 01:48:48,242 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 50 01:48:48,242 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower78), Chunk: 1/3 01:48:48,242 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior76#309202432] 01:48:48,254 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader77] 01:48:48,255 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower78] 01:48:48,360 PM [main] [INFO] LeaderTest - Starting testLeaderAddressInAppendEntries 01:48:48,360 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:48,360 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to -1 01:48:48,362 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:48,362 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:48,363 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:48:48,363 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:48,464 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior79#-1772251437] 01:48:48,476 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader80] 01:48:48,477 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower81] 01:48:48,482 PM [main] [INFO] LeaderTest - Starting testHandleRequestVoteReply 01:48:48,482 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:48,482 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:48,482 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior82#-577028549] 01:48:48,493 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader83] 01:48:48,494 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower84] 01:48:48,700 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplyFailureWithFollowersLogBehindTheLeader 01:48:48,700 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:48,700 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:48:48,700 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:48:48,700 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to 0 01:48:48,700 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:48,700 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:48:48,701 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:48:48,701 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:48:48,701 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:48:48,701 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:48:48,701 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:48:48,701 PM [main] [INFO] MockRaftActorContext - leader (Leader): follower follower appears to be behind the leader from the last snapshot - updated: matchIndex: 0, nextIndex: 1 01:48:48,701 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:48,701 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:48,701 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 1 is present for follower follower 01:48:48,701 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:48:48,701 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:48:48,701 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Number of entries to be appended = 2 01:48:48,701 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:48:48,701 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 1 01:48:48,701 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 2 01:48:48,701 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Log size is now 3 01:48:48,701 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Commit index set to 2 01:48:48,701 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:48:48,701 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 01:48:48,702 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 1 for term 1 01:48:48,702 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:48:48,702 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 01:48:48,702 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 0, lastIndex(): 2 01:48:48,702 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 1 01:48:48,702 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 0 to 1 01:48:48,702 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 2 01:48:48,702 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to 2 01:48:48,702 PM [main] [DEBUG] MockRaftActorContext - follower: fakeSnapshot purging log to 0 for term 1 01:48:48,702 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior85#1077242177] 01:48:48,714 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader86] 01:48:48,715 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower87] 01:48:48,719 PM [main] [INFO] LeaderTest - Starting testTransferLeadershipWithFollowerInitiallyOutOfSync 01:48:48,719 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:48,719 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:48,719 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:48,793 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Attempting to transfer leadership 01:48:48,794 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:48,801 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:48:48,801 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:48,801 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:48:48,801 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:48:48,803 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: -1, lastIndex: 1, isVoting: true 01:48:49,5 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:48:49,5 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:48:49,5 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:49,5 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:49,6 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:49,6 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: 1, lastIndex: 1, isVoting: true 01:48:49,6 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Follower's log matches - sending ElectionTimeout 01:48:49,6 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:49,6 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Leader transfer complete 01:48:49,9 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior88#-2009579093] 01:48:49,21 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader89] 01:48:49,22 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower90] 01:48:49,26 PM [main] [INFO] LeaderTest - Starting testInstallSnapshot 01:48:49,26 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,26 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 3 01:48:49,26 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,26 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 2 01:48:49,27 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendInstallSnapshot 01:48:49,27 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 106 bytes, total chunks to send: 1 01:48:49,27 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=0, size=106, hashCode=1072258452 01:48:49,27 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 106 01:48:49,27 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower93), Chunk: 1/1 01:48:49,27 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior91#2036684950] 01:48:49,39 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader92] 01:48:49,39 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower93] 01:48:49,43 PM [main] [INFO] LeaderTest - Starting testFollowerCatchUpWithAppendEntriesMaxDataSizeExceeded 01:48:49,43 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,43 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 3 01:48:49,43 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:48:49,43 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to -1 01:48:49,44 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,44 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 01:48:49,44 PM [main] [INFO] MockRaftActorContext - follower (Follower): The followers log is empty and the senders prevLogIndex is 2 01:48:49,44 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:48:49,44 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:48:49,44 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:48:49,44 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:48:49,44 PM [main] [INFO] MockRaftActorContext - leader (Leader): follower follower appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 01:48:49,44 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 3, leaderSnapShotIndex: -1 01:48:49,44 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:48:49,45 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:48:49,45 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:48:49,45 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Number of entries to be appended = 2 01:48:49,45 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:48:49,45 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 0 01:48:49,45 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 1 01:48:49,45 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Log size is now 2 01:48:49,45 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Commit index set to 1 01:48:49,45 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:48:49,45 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:49,45 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 1 for term 1 01:48:49,45 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:48:49,45 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:49,45 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:48:49,45 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 2 entries behind leader leader and reached 1 (of expected -1) 01:48:49,45 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 1 01:48:49,45 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 0 01:48:49,45 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 0 01:48:49,45 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 1 01:48:49,45 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 0 to 1 01:48:49,45 PM [main] [WARN] MockRaftActorContext - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 3 01:48:49,45 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:48:49,45 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Number of entries to be appended = 2 01:48:49,46 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:48:49,46 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 2 01:48:49,46 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 3 01:48:49,46 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Log size is now 4 01:48:49,46 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Commit index set to 3 01:48:49,46 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:48:49,46 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 01:48:49,46 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 2 for term 1 01:48:49,46 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 01:48:49,46 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 3 (of expected -1) 01:48:49,46 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 1, lastIndex(): 3 01:48:49,46 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 2 01:48:49,46 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to 2 01:48:49,46 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 3 01:48:49,46 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 2 to 3 01:48:49,46 PM [main] [DEBUG] MockRaftActorContext - follower: fakeSnapshot purging log to 1 for term 1 01:48:49,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior94#-1621544806] 01:48:49,58 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader95] 01:48:49,58 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower96] 01:48:49,64 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplyFailureWithFollowersLogTermDifferent 01:48:49,64 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,65 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 1 01:48:49,65 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:48:49,65 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to -1 01:48:49,65 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,65 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:49,65 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:48:49,65 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:48:49,65 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:48:49,66 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:48:49,66 PM [main] [INFO] MockRaftActorContext - leader (Leader): follower follower last log term 1 conflicts with the leader's 2 - dec next index to 0 01:48:49,66 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:49,66 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:48:49,66 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:48:49,66 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:48:49,66 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Number of entries to be appended = 2 01:48:49,66 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=0] is present: existingEntryTerm: 1 01:48:49,66 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:49,66 PM [main] [INFO] MockRaftActorContext - follower (Follower): Removing entries from log starting at 0, commitIndex: -1, lastApplied: -1 01:48:49,66 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:48:49,66 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 0 01:48:49,66 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 1 01:48:49,66 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Log size is now 2 01:48:49,66 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Commit index set to 1 01:48:49,66 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:48:49,66 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:49,67 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:49,67 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:49,67 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 01:48:49,67 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:48:49,67 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 0 01:48:49,67 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 0 01:48:49,67 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 1 01:48:49,67 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 0 to 1 01:48:49,67 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior97#806385258] 01:48:49,78 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader98] 01:48:49,79 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower99] 01:48:49,87 PM [main] [INFO] LeaderTest - Starting testTransferLeadershipWithEmptyLog 01:48:49,87 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,87 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,87 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:49,87 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:48:49,87 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:49,88 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Attempting to transfer leadership 01:48:49,89 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:49,89 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: -1, lastIndex: -1, isVoting: true 01:48:49,89 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Follower's log matches - sending ElectionTimeout 01:48:49,89 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:49,89 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Leader transfer complete 01:48:49,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior100#-919678259] 01:48:49,101 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader101] 01:48:49,102 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower102] 01:48:49,105 PM [main] [INFO] LeaderTest - Starting testSendAppendEntriesSnapshotScenario 01:48:49,105 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,105 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,105 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 3 01:48:49,106 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:48:49,106 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:49,106 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 3 01:48:49,106 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:48:49,106 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:48:49,106 PM [main] [DEBUG] MockRaftActorContext - leader: lastSequenceNumber prior to capture: -1 01:48:49,106 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior103#757147646] 01:48:49,117 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader104] 01:48:49,118 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower105] 01:48:49,120 PM [main] [INFO] LeaderTest - Starting testLeaderCreatedWithCommitIndexLessThanLastIndex 01:48:49,120 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,120 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:48:49,121 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,121 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:48:49,121 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:48:49,121 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior106#1992643285] 01:48:49,132 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader107] 01:48:49,132 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower108] 01:48:49,343 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplySuccess 01:48:49,343 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,343 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 1 01:48:49,344 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,344 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:48:49,344 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 01:48:49,344 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:48:49,344 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 2 01:48:49,344 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:48:49,344 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 1 for term 1 01:48:49,344 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:48:49,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior109#1875713273] 01:48:49,356 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader110] 01:48:49,357 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower111] 01:48:49,462 PM [main] [INFO] LeaderTest - Starting testIsolatedLeaderCheckNoVotingFollowers 01:48:49,462 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:48:49,463 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,463 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,463 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:49,463 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:48:49,467 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior112#-166854419] 01:48:49,472 PM [test-akka.actor.default-dispatcher-11] [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) 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) [ERROR] [03/06/2024 13:48:49.471] [test-akka.actor.internal-dispatcher-2] [akka://test/user/follower114] 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) 01:48:49,478 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader113] 01:48:49,479 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower114] 01:48:49,586 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplyFailureWithFollowersLogEmpty 01:48:49,587 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,587 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 1 01:48:49,587 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:48:49,587 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to -1 01:48:49,587 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,587 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:49,587 PM [main] [INFO] MockRaftActorContext - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 01:48:49,587 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:48:49,587 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:48:49,588 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:48:49,588 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:48:49,588 PM [main] [INFO] MockRaftActorContext - leader (Leader): follower follower appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 01:48:49,588 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:49,588 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:48:49,588 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:48:49,588 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:48:49,588 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Number of entries to be appended = 2 01:48:49,588 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:48:49,588 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 0 01:48:49,588 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Append entry to log 1 01:48:49,588 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Log size is now 2 01:48:49,588 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Commit index set to 1 01:48:49,588 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:48:49,588 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:49,588 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:49,588 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:49,588 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 01:48:49,588 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:48:49,588 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 0 01:48:49,588 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 0 01:48:49,589 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 1 01:48:49,589 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 0 to 1 01:48:49,589 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior115#178909461] 01:48:49,601 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader116] 01:48:49,602 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower117] 01:48:49,606 PM [main] [INFO] LeaderTest - Starting testHandleReplicateMessageCommitIndexIncrementedBeforeConsensus 01:48:49,606 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,607 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,607 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:49,608 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:49,608 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:49,608 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:49,608 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:49,608 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 2 01:48:49,608 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:48:49,608 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:49,608 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:49,608 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:48:49,608 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior118#617862339] 01:48:49,619 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader119] 01:48:49,620 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower120] 01:48:49,623 PM [main] [INFO] LeaderTest - Starting testIsolatedLeaderCheckNoFollowers 01:48:49,623 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,624 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:49,624 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior121#1278697484] 01:48:49,635 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader122] 01:48:49,635 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower123] 01:48:49,638 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplyWithNewerTerm 01:48:49,638 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,638 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:49,638 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:48:49,639 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:49,639 PM [main] [INFO] MockRaftActorContext - leader (Leader) :- Switching from behavior Leader to Follower, election term: 20 01:48:49,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior124#-1568239364] 01:48:49,650 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader125] 01:48:49,651 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower126] 01:48:49,654 PM [main] [INFO] LeaderTest - Starting testTransferLeadershipWithFollowerInSync 01:48:49,654 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,654 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to -1 01:48:49,654 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,654 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:49,655 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:48:49,655 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 01:48:49,655 PM [main] [WARN] MockRaftActorContext - leader (Leader): Missing index 0 from log. Cannot apply state. Ignoring 0 to 1 01:48:49,655 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:49,655 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:49,655 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:49,655 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:49,655 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:48:49,655 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:48:49,655 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:48:49,655 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 01:48:49,655 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 0 01:48:49,655 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 0 01:48:49,655 PM [main] [WARN] MockRaftActorContext - leader (Leader): Missing index 1 from log. Cannot apply state. Ignoring 1 to 1 01:48:49,655 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:49,656 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Attempting to transfer leadership 01:48:49,656 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:49,657 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:48:49,657 PM [main] [WARN] MockRaftActorContext - leader (Leader): Missing index 1 from log. Cannot apply state. Ignoring 1 to 1 01:48:49,657 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: 0, lastIndex: 0, isVoting: true 01:48:49,657 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Follower's log matches - sending ElectionTimeout 01:48:49,657 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:49,657 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Leader transfer complete 01:48:49,657 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior127#-1372881150] 01:48:49,668 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader128] 01:48:49,669 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower129] 01:48:49,671 PM [main] [INFO] LeaderTest - Starting testInitiateForceInstallSnapshot 01:48:49,671 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,671 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 3 01:48:49,672 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,672 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:49,673 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:48:49,673 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:48:49,673 PM [main] [DEBUG] MockRaftActorContext - leader: lastSequenceNumber prior to capture: -1 01:48:49,673 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:48:49,673 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:49,673 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:48:49,673 PM [main] [DEBUG] MockRaftActorContext - captureToInstall should not be called in state Creating 01:48:49,674 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:48:49,674 PM [main] [INFO] MockRaftActorContext - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:48:49,674 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendInstallSnapshot 01:48:49,674 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 3 bytes, total chunks to send: 1 01:48:49,674 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=3, offset=0, size=3, hashCode=30817 01:48:49,674 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 3 01:48:49,674 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower132), Chunk: 1/1 01:48:49,674 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:48:49,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior130#-846308878] 01:48:49,887 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader131] 01:48:49,888 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower132] 01:48:49,891 PM [main] [INFO] LeaderTest - Starting testLeaderCreatedWithCommitIndexLessThanFollowersCommitIndex 01:48:49,891 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,891 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from -1 to 1 01:48:49,892 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,892 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:48:49,892 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:48:49,892 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 01:48:49,892 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:48:49,892 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 2 01:48:49,892 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:48:49,892 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 1 for term 1 01:48:49,892 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:48:49,892 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 01:48:49,892 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:48:49,892 PM [main] [DEBUG] MockRaftActorContext - follower (Follower): Setting last applied to 2 01:48:49,892 PM [main] [DEBUG] MockRaftActorContext - follower: Moving last applied index from 1 to 2 01:48:49,892 PM [main] [DEBUG] MockRaftActorContext - follower: fakeSnapshot purging log to 1 for term 1 01:48:49,943 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 01:48:49,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior133#-1527532385] 01:48:49,955 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader134] 01:48:49,955 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower135] 01:48:49,959 PM [main] [INFO] LeaderTest - Starting testTransferLeadershipWithFollowerSyncTimeout 01:48:49,959 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:49,959 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:49,959 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:49,960 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:48:49,960 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:49,960 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:49,960 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:49,960 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:49,960 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:48:49,960 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:48:49,960 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Attempting to transfer leadership 01:48:49,961 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:49,961 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:48:50,162 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:48:50,163 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:48:50,364 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Leadership transfer expired 01:48:50,466 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior136#1267098450] 01:48:50,477 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader137] 01:48:50,478 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower138] 01:48:50,481 PM [main] [INFO] LeaderTest - Starting testSendingReplicateImmediatelyAfterHeartbeatDoesReplicate 01:48:50,481 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:50,484 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:50,484 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:50,484 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:50,484 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:50,484 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:50,635 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:50,635 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:50,635 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:50,635 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:50,635 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:48:50,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior139#2099534155] 01:48:50,647 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader140] 01:48:50,647 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower141] 01:48:50,651 PM [main] [INFO] LeaderTest - Starting testLeaderInstallSnapshotState 01:48:50,651 PM [main] [DEBUG] LeaderInstallSnapshotState - test: Snapshot 106 bytes, total chunks to send: 3 01:48:50,651 PM [main] [DEBUG] LeaderInstallSnapshotState - test: Next chunk: total length=106, offset=0, size=50, hashCode=-65379387 01:48:50,651 PM [main] [DEBUG] LeaderInstallSnapshotState - test: Next chunk: total length=106, offset=50, size=50, hashCode=-2011893223 01:48:50,651 PM [main] [DEBUG] LeaderInstallSnapshotState - test: Next chunk: total length=106, offset=100, size=6, hashCode=-1840245320 01:48:50,651 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior142#249382385] 01:48:50,663 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader143] 01:48:50,663 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower144] 01:48:50,766 PM [main] [INFO] LeaderTest - Starting testIsolatedLeaderCheckTwoFollowersWhenElectionsAreDisabled 01:48:50,766 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:50,767 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower-2, follower-1] 01:48:50,767 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower-2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:50,767 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower-1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:50,780 PM [main] [WARN] MockRaftActorContext - leader: At least 1 followers need to be active, Switching leader from Leader to IsolatedLeader 01:48:50,780 PM [main] [DEBUG] MockRaftActorContext - leader (IsolatedLeader): Election: Leader has following peers: [follower-2, follower-1] 01:48:50,781 PM [main] [DEBUG] MockRaftActorContext - leader (IsolatedLeader): Checking sendAppendEntries for follower follower-2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:50,781 PM [main] [DEBUG] MockRaftActorContext - leader (IsolatedLeader): Checking sendAppendEntries for follower follower-1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 [WARN] [03/06/2024 13:48:50.781] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower-2] received dead letter from TestActor[akka://test/user/leader146]: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:48:50,781 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior145#1233999971] [WARN] [03/06/2024 13:48:50.781] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower-1] received dead letter from TestActor[akka://test/user/leader146]: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [INFO] [akkaDeadLetter][03/06/2024 13:48:50.781] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower-2] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader146] to Actor[akka://test/user/follower-2#1829739057] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/follower-2#1829739057] 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][03/06/2024 13:48:50.782] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower-1] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader146] 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:48:50,782 PM [test-akka.actor.default-dispatcher-12] [INFO] RepointableActorRef - Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader146] to Actor[akka://test/user/follower-2#1829739057] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/follower-2#1829739057] 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:48:50,782 PM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader146] 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:48:50,792 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader146] 01:48:50,793 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower147] [WARN] [03/06/2024 13:48:50.848] [test-akka.actor.default-dispatcher-11] [akka://test/user/leader146] received dead letter from TestActor[akka://test/user/leader146]: org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat@63e9a429 [INFO] [akkaDeadLetter][03/06/2024 13:48:50.849] [test-akka.actor.default-dispatcher-12] [akka://test/user/leader146] Message [org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat] from TestActor[akka://test/user/leader146] to TestActor[akka://test/user/leader146] was not delivered. [3] dead letters encountered. If this is not an expected behavior then TestActor[akka://test/user/leader146] 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:48:50,849 PM [test-akka.actor.default-dispatcher-12] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat] from TestActor[akka://test/user/leader146] to TestActor[akka://test/user/leader146] was not delivered. [3] dead letters encountered. If this is not an expected behavior then TestActor[akka://test/user/leader146] 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:48:50,996 PM [main] [INFO] LeaderTest - Starting testDuplicateAppendEntriesWillBeSentOnHeartBeat 01:48:50,996 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:50,998 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:50,998 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:50,998 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:50,998 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:50,998 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:50,998 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:50,999 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:50,999 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:50,999 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:50,999 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:48:51,749 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:51,749 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:48:51,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior148#541566160] 01:48:51,761 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader149] 01:48:51,762 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower150] 01:48:51,773 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplyWithNewerTermWhenElectionsAreDisabled 01:48:51,773 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:51,773 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:51,773 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:48:51,773 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior151#-1836965740] 01:48:51,784 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader152] 01:48:51,785 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower153] 01:48:51,788 PM [main] [INFO] LeaderTest - Starting testLargePayloadSlicingExpiration 01:48:51,788 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:51,788 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to -1 01:48:51,788 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:51,788 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:51,788 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:48:51,788 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:51,788 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:51,788 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:51,788 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:51,788 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:48:51,789 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Log entry size 11 exceeds max payload size 10 01:48:51,789 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:48:51,789 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Slicing stream for index 0, follower follower 01:48:52,140 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): On SharedFileBackedOutputStream cleanup for index 0 01:48:52,144 PM [main] [WARN] MessageSlicer - leader (Leader)_slicer-id-59: SlicedMessageState for MessageSliceIdentifier [clientIdentifier=FollowerIdentifier{value=follower}, slicerId=59, messageId=3] was expired from the cache 01:48:52,144 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=59, 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:48:52,596 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 : 808, lastApplied : -1, commitIndex : -1 01:48:52,597 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:48:52,597 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Log entry size 11 exceeds max payload size 10 01:48:52,597 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:48:52,597 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Slicing stream for index 0, follower follower 01:48:52,597 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): On SharedFileBackedOutputStream cleanup for index 0 01:48:52,598 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior154#759357433] 01:48:52,609 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader155] 01:48:52,610 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower156] 01:48:52,815 PM [main] [INFO] LeaderTest - Starting testHeartbeatsAreAlwaysSentIfTheHeartbeatIntervalHasElapsed 01:48:52,815 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:52,816 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:52,816 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:52,816 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:52,816 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:52,817 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:53,268 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior157#969745964] 01:48:53,280 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader158] 01:48:53,280 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower159] 01:48:53,283 PM [main] [INFO] LeaderTest - Starting testInitiateInstallSnapshot 01:48:53,283 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:53,283 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 3 01:48:53,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:53,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 3 01:48:53,283 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:48:53,283 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:53,283 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 3 01:48:53,284 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:48:53,284 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:48:53,284 PM [main] [DEBUG] MockRaftActorContext - leader: lastSequenceNumber prior to capture: -1 01:48:53,284 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:48:53,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior160#-648311788] 01:48:53,295 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader161] 01:48:53,295 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower162] 01:48:53,301 PM [main] [INFO] LeaderTest - Starting testHandleReplicateMessageSendAppendEntriesToFollower 01:48:53,301 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:53,302 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:53,302 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:53,302 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:53,302 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:53,302 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:53,302 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:53,302 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:53,302 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:53,302 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:53,302 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:48:53,302 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior163#1075636107] 01:48:53,313 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader164] 01:48:53,314 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower165] 01:48:53,317 PM [main] [INFO] LeaderTest - Starting testForceInstallSnapshot 01:48:53,317 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:53,317 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 3 01:48:53,317 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:53,317 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:53,318 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendInstallSnapshot 01:48:53,318 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 106 bytes, total chunks to send: 1 01:48:53,318 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=0, size=106, hashCode=1072258452 01:48:53,318 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 106 01:48:53,318 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower168), Chunk: 1/1 01:48:53,318 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior166#-1460254677] 01:48:53,329 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader167] 01:48:53,330 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower168] 01:48:53,441 PM [main] [INFO] LeaderTest - Starting testSendSnapshotfromInstallSnapshotReply 01:48:53,441 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:53,441 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:53,441 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:53,442 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendInstallSnapshot 01:48:53,442 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 106 bytes, total chunks to send: 3 01:48:53,442 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=0, size=50, hashCode=-65379387 01:48:53,442 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 50 01:48:53,442 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower171), Chunk: 1/3 01:48:53,442 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=2, followerId=follower, chunkIndex=1, success=true] 01:48:53,442 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=50, size=50, hashCode=-2011893223 01:48:53,442 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 50 01:48:53,442 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower171), Chunk: 2/3 01:48:53,442 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=2, followerId=follower, chunkIndex=2, success=true] 01:48:53,442 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=100, size=6, hashCode=-1840245320 01:48:53,443 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 6 01:48:53,443 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower171), Chunk: 3/3 01:48:53,443 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=2, followerId=follower, chunkIndex=3, success=true] 01:48:53,443 PM [main] [INFO] MockRaftActorContext - leader (Leader): Snapshot successfully installed on follower follower (last chunk 3) - matchIndex set to 3, nextIndex set to 4 01:48:53,443 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior169#-441677603] 01:48:53,454 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader170] 01:48:53,455 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower171] 01:48:53,459 PM [main] [INFO] LeaderTest - Starting testHandleAppendEntriesReplyUnknownFollower 01:48:53,459 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:53,459 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:53,459 PM [main] [ERROR] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - unknown follower unkown-follower 01:48:53,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior172#-890262203] 01:48:53,471 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader173] 01:48:53,471 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower174] 01:48:53,575 PM [main] [INFO] LeaderTest - Starting testThatLeaderSendsAHeartbeatMessageToAllFollowers 01:48:53,575 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:53,575 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:53,576 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:53,576 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:48:53,576 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:53,576 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:53,576 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 1 is present for follower follower 01:48:53,576 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:48:53,626 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 1 is present for follower follower 01:48:53,627 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:48:53,627 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior175#-274923131] 01:48:53,639 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader176] 01:48:53,639 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower177] 01:48:53,744 PM [main] [INFO] LeaderTest - Starting testHandleReplicateMessageWithHigherTermThanPreviousEntry 01:48:53,744 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:53,744 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to -1 01:48:53,744 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:53,744 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:53,744 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:53,744 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:48:53,744 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:48:53,744 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:53,745 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:53,745 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:53,745 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:48:53,745 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:53,745 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:48:53,745 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 01:48:53,745 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:48:53,745 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:48:53,745 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: -1 01:48:53,745 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 0 01:48:53,745 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 0 01:48:53,745 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 1 01:48:53,745 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 0 to 1 01:48:53,745 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 2 01:48:53,745 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:48:53,745 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 1 for term 2 01:48:53,745 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:48:53,745 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior178#274410788] 01:48:53,757 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader179] 01:48:53,757 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower180] 01:48:53,963 PM [main] [INFO] LeaderTest - Starting testMultipleReplicateWithReplyShouldResultInAppendEntries 01:48:53,963 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:53,964 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:53,964 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:53,965 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:53,965 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:53,965 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:53,965 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:53,965 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:53,965 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:53,965 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:53,965 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:48:53,965 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 01:48:53,965 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:48:53,965 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 2 01:48:53,965 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 1 for term 1 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 3, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 3 is present for follower follower 01:48:53,966 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:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 3 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 2 to 3 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 2 for term 1 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 2 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 4 is present for follower follower 01:48:53,966 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:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 4, nextIndex: 5 01:48:53,966 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 01:48:53,967 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 4 01:48:53,967 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 3 to 4 01:48:53,967 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 3 for term 1 01:48:53,967 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: 3 01:48:53,967 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 5, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:53,967 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 5, leaderLastIndex: 5, leaderSnapShotIndex: 3 01:48:53,967 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 5 is present for follower follower 01:48:53,967 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:48:53,967 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 6, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:53,967 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 5, leaderLastIndex: 6, leaderSnapShotIndex: 3 01:48:53,967 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 5 is present for follower follower 01:48:53,968 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior181#-889421696] 01:48:53,979 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader182] 01:48:53,979 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower183] 01:48:53,983 PM [main] [INFO] LeaderTest - Starting testReplicationConsensusWithNonVotingFollower 01:48:53,983 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:53,983 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to -1 01:48:53,985 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower, nonvoting-follower] 01:48:53,985 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:53,985 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower nonvoting-follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:53,986 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:53,986 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:53,986 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:53,986 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower nonvoting-follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:53,986 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:48:53,986 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:48:53,986 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 0 01:48:53,986 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 0 01:48:53,986 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:53,987 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for nonvoting-follower updated: matchIndex: 0, nextIndex: 1 01:48:53,987 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower nonvoting-follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:53,987 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:53,987 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:53,987 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 1 is present for follower follower 01:48:53,987 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:48:53,987 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower nonvoting-follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:53,987 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 1 is present for follower nonvoting-follower 01:48:53,987 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:48:53,987 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for nonvoting-follower updated: matchIndex: 1, nextIndex: 2 01:48:53,987 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower nonvoting-follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:54,490 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:54,490 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:48:54,490 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 1 01:48:54,490 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 0 to 1 01:48:54,490 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:54,490 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:54,490 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior184#-1599382915] 01:48:54,502 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader185] 01:48:54,503 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower186] 01:48:54,503 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/nonvoting-follower187#-1173698751] 01:48:54,507 PM [main] [INFO] LeaderTest - Starting testHandleInstallSnapshotReplyLastChunk 01:48:54,507 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:54,507 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:54,507 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:54,508 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 106 bytes, total chunks to send: 1 01:48:54,508 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=2, followerId=follower, chunkIndex=1, success=true] 01:48:54,508 PM [main] [INFO] MockRaftActorContext - leader (Leader): Snapshot successfully installed on follower follower (last chunk 1) - matchIndex set to 3, nextIndex set to 4 01:48:54,508 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior188#-2102300397] 01:48:54,519 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader189] 01:48:54,519 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower190] 01:48:54,725 PM [main] [INFO] LeaderTest - Starting testSendAppendEntriesOnAnInProgressInstallSnapshot 01:48:54,725 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:54,727 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:54,727 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 2 01:48:54,730 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 79 bytes, total chunks to send: 8 01:48:54,730 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=79, offset=0, size=10, hashCode=1052414894 01:48:54,831 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=79, offset=10, size=10, hashCode=4695158 01:48:54,831 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 10 01:48:54,831 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower193), Chunk: 2/8 01:48:54,831 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#542997391] 01:48:54,842 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader192] 01:48:54,843 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower193] 01:48:54,847 PM [main] [INFO] LeaderTest - Starting testHandleReplicateMessageSendAppendEntriesToFollower 01:48:54,847 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:54,848 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:54,848 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:54,848 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:54,848 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:54,848 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:54,848 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:54,848 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:54,849 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:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 3, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 0 01:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 0 01:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 5, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 5, leaderSnapShotIndex: 0 01:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 6, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 6, leaderSnapShotIndex: 0 01:48:54,849 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:54,849 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#552696173] 01:48:54,860 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader195] 01:48:54,861 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower196] 01:48:54,864 PM [main] [INFO] LeaderTest - Starting testHandleReplicateMessageWhenThereAreNoFollowers 01:48:54,864 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:54,864 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:54,864 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 0 01:48:54,864 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:48:54,864 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 1 01:48:54,864 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 0 to 1 01:48:54,864 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 2 01:48:54,864 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to 2 01:48:54,864 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior197#296748287] 01:48:54,876 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader198] 01:48:54,877 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower199] 01:48:54,879 PM [main] [INFO] LeaderTest - Starting testIsolatedLeaderCheckTwoFollowers 01:48:54,879 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:54,879 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower-2, follower-1] 01:48:54,879 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower-2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:54,879 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower-1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:54,890 PM [main] [WARN] MockRaftActorContext - leader: At least 1 followers need to be active, Switching leader from Leader to IsolatedLeader 01:48:54,890 PM [main] [DEBUG] MockRaftActorContext - leader (IsolatedLeader): Election: Leader has following peers: [follower-2, follower-1] 01:48:54,890 PM [main] [DEBUG] MockRaftActorContext - leader (IsolatedLeader): Checking sendAppendEntries for follower follower-2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:54,891 PM [main] [DEBUG] MockRaftActorContext - leader (IsolatedLeader): Checking sendAppendEntries for follower follower-1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:54,891 PM [main] [INFO] MockRaftActorContext - leader (Leader) :- Switching from behavior Leader to IsolatedLeader, election term: 1 01:48:54,891 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior200#-1313202216] [WARN] [03/06/2024 13:48:54.891] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower-2] received dead letter from TestActor[akka://test/user/leader201]: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [03/06/2024 13:48:54.891] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower-1] received dead letter from TestActor[akka://test/user/leader201]: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [INFO] [akkaDeadLetter][03/06/2024 13:48:54.891] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower-2] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader201] 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][03/06/2024 13:48:54.891] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower-1] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader201] 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:48:54,891 PM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader201] 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:48:54,892 PM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader201] 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:48:54,902 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader201] 01:48:54,903 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower202] 01:48:54,906 PM [main] [INFO] LeaderTest - Starting testHandleSnapshotSendsPreviousChunksHashCodeWhenSendingNextChunk 01:48:54,906 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:54,907 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:54,907 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 3, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:54,907 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendInstallSnapshot 01:48:54,907 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 106 bytes, total chunks to send: 3 01:48:54,907 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=0, size=50, hashCode=-65379387 01:48:54,907 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 50 01:48:54,907 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower205), Chunk: 1/3 01:48:54,907 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=2, followerId=follower, chunkIndex=1, success=true] 01:48:54,908 PM [main] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=106, offset=50, size=50, hashCode=-2011893223 01:48:54,908 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): next snapshot chunk size for follower follower: 50 01:48:54,908 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): InstallSnapshot sent to follower Vector(user, follower205), Chunk: 2/3 01:48:54,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior203#-445374538] 01:48:54,919 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader204] 01:48:54,919 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower205] 01:48:54,923 PM [main] [INFO] LeaderTest - Starting testReplicationWithPayloadSizeThatExceedsThreshold 01:48:54,923 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:54,923 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 1 to -1 01:48:54,923 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [follower] 01:48:54,923 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:54,924 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 01:48:54,924 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:54,924 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:54,924 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:54,924 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:54,924 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 0 is present for follower follower 01:48:54,924 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:48:54,924 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 01:48:54,924 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:48:54,924 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 0 01:48:54,924 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 0 01:48:54,924 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:54,925 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:54,925 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:54,925 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 1 is present for follower follower 01:48:54,925 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Log entry size 269 exceeds max payload size 219 01:48:54,925 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:48:54,925 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Slicing stream for index 1, follower follower [WARN] [03/06/2024 13:48:54.959] [test-akka.actor.default-dispatcher-11] [akka://test/user/leader201] received dead letter from TestActor[akka://test/user/leader201]: org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat@63e9a429 01:48:54,959 PM [test-akka.actor.default-dispatcher-11] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat] from TestActor[akka://test/user/leader201] to TestActor[akka://test/user/leader201] was not delivered. [6] dead letters encountered. If this is not an expected behavior then TestActor[akka://test/user/leader201] 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][03/06/2024 13:48:54.959] [test-akka.actor.default-dispatcher-5] [akka://test/user/leader201] Message [org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat] from TestActor[akka://test/user/leader201] to TestActor[akka://test/user/leader201] was not delivered. [6] dead letters encountered. If this is not an expected behavior then TestActor[akka://test/user/leader201] 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:48:55,226 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): On SharedFileBackedOutputStream cleanup for index 1 01:48:55,226 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 01:48:55,226 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:48:55,226 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Setting last applied to 1 01:48:55,226 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from 0 to 1 01:48:55,226 PM [main] [DEBUG] MockRaftActorContext - leader: fakeSnapshot purging log to 0 for term 1 01:48:55,226 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:55,226 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Replicate message: identifier: null, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:55,227 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:55,227 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): sendAppendEntries: 2 is present for follower follower 01:48:55,227 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:48:55,227 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior206#611620394] 01:48:55,239 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader207] 01:48:55,239 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower208] 01:48:55,445 PM [main] [INFO] LeaderTest - Starting testLeaderSchedulesHeartbeatsEvenWhenNoFollowersRespondToInitialAppendEntries 01:48:55,447 PM [main] [DEBUG] MockRaftActorContext - leader212: Moving last applied index from -1 to 1 01:48:55,447 PM [main] [DEBUG] MockRaftActorContext - leader212 (Leader): Election: Leader has following peers: [follower214, follower213] 01:48:55,447 PM [main] [DEBUG] MockRaftActorContext - leader212 (Leader): Checking sendAppendEntries for follower follower214: active: false, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:48:55,447 PM [main] [DEBUG] MockRaftActorContext - leader212 (Leader): Checking sendAppendEntries for follower follower213: active: false, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:48:56,448 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior209#305583662] 01:48:56,460 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader210] 01:48:56,460 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower211] 01:48:56,461 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader212] 01:48:56,461 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower213#-647669061] 01:48:56,462 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower214#76536976] [WARN] [03/06/2024 13:48:56.538] [test-akka.actor.default-dispatcher-5] [akka://test/user/leader212] received dead letter from TestActor[akka://test/user/leader212]: org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat@63e9a429 [INFO] [akkaDeadLetter][03/06/2024 13:48:56.539] [test-akka.actor.default-dispatcher-5] [akka://test/user/leader212] Message [org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat] from TestActor[akka://test/user/leader212] to TestActor[akka://test/user/leader212] was not delivered. [7] dead letters encountered. If this is not an expected behavior then TestActor[akka://test/user/leader212] 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:48:56,539 PM [test-akka.actor.default-dispatcher-12] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.SendHeartBeat] from TestActor[akka://test/user/leader212] to TestActor[akka://test/user/leader212] was not delivered. [7] dead letters encountered. If this is not an expected behavior then TestActor[akka://test/user/leader212] 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:48:56,667 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:56,667 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:56,667 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:48:56,667 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:48:56,667 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#-1348506707] 01:48:56,679 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader216] 01:48:56,680 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower217] 01:48:56,684 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:56,684 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:56,684 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:48:56,684 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior218#1972153926] 01:48:56,695 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader219] 01:48:56,695 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower220] 01:48:56,701 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:56,701 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:56,701 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:48:56,701 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:48:56,701 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-526604553] 01:48:56,712 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader222] 01:48:56,712 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower223] 01:48:56,815 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:56,815 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:56,815 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:48:56,816 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:56,816 PM [main] [INFO] MockRaftActorContext - leader (Leader) :- Switching from behavior Leader to Follower, election term: 100 01:48:56,816 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:56,816 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:48:56,816 PM [main] [INFO] MockRaftActorContext - leader (Leader) :- Switching from behavior Leader to Follower, election term: 100 01:48:56,816 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:56,816 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:48:56,816 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Cluster state: [] 01:48:56,816 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:48:56,816 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:48:56,816 PM [main] [INFO] MockRaftActorContext - leader (Leader) :- Switching from behavior Leader to Follower, election term: 100 01:48:56,816 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:56,816 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:48:56,817 PM [main] [INFO] MockRaftActorContext - leader (Leader) :- Switching from behavior Leader to Follower, election term: 100 01:48:56,817 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior224#-2081555814] 01:48:56,828 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader225] 01:48:56,829 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower226] 01:48:56,832 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:48:56,832 PM [main] [DEBUG] MockRaftActorContext - test (Leader): Election: Leader has following peers: [] 01:48:56,832 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from 1 to 0 01:48:56,832 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from 0 to 0 01:48:56,832 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from 0 to 1 01:48:56,832 PM [main] [DEBUG] MockRaftActorContext - test: fakeSnapshot purging log to 0 for term 1 01:48:56,833 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from 1 to 2 01:48:56,833 PM [main] [DEBUG] MockRaftActorContext - test: fakeSnapshot purging log to 1 for term 1 01:48:56,833 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from 2 to 2 01:48:56,833 PM [main] [DEBUG] MockRaftActorContext - test: fakeSnapshot purging log to 1 for term 1 01:48:56,833 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#-1962757614] 01:48:56,844 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader228] 01:48:56,844 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower229] 01:48:56,847 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:56,847 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:56,847 PM [main] [INFO] MockRaftActorContext - leader (Leader): Cannot append entries because sender's term 100 is less than 1000 01:48:56,847 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior230#-322781291] 01:48:56,858 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader231] 01:48:56,859 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower232] 01:48:56,862 PM [main] [DEBUG] MockRaftActorContext - leader: Moving last applied index from -1 to 1 01:48:56,862 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): Election: Leader has following peers: [] 01:48:56,862 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:48:56,862 PM [main] [DEBUG] MockRaftActorContext - leader (Leader): requestVote returning: RequestVoteReply [term=1000, voteGranted=false] 01:48:56,862 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior233#2009238016] 01:48:56,874 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader234] 01:48:56,874 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower235] 01:48:56,875 PM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [03/06/2024 13:48:56.875] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/06/2024 13:48:56.876] [test-akka.actor.default-dispatcher-12] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.2:25520) [INFO] [akkaDeadLetter][03/06/2024 13:48:56.876] [test-akka.actor.default-dispatcher-12] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1140553802] 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:48:56,877 PM [test-akka.actor.default-dispatcher-11] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1140553802] 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:48:56,878 PM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.171.2:25520] - Exiting completed 01:48:56,878 PM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.171.2:25520] - Shutting down... [INFO] [03/06/2024 13:48:56.877] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.2:25520] - Exiting completed [INFO] [03/06/2024 13:48:56.877] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.2:25520] - Shutting down... [INFO] [03/06/2024 13:48:56.878] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.2:25520] - Successfully shut down 01:48:56,878 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.2:25520] - Successfully shut down 01:48:56,880 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [03/06/2024 13:48:56.880] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.2:25520/system/remoting-terminator] Shutting down remote daemon. 01:48:56,880 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/06/2024 13:48:56.880] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.2:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/06/2024 13:48:56.884] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.2:25520/system/remoting-terminator] Remoting shut down. 01:48:56,884 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.