Package | Description |
---|---|
org.opendaylight.controller.cluster.raft | |
org.opendaylight.controller.cluster.raft.behaviors |
Modifier and Type | Method and Description |
---|---|
RaftActorLeadershipTransferCohort |
RaftActorContextImpl.getRaftActorLeadershipTransferCohort() |
RaftActorLeadershipTransferCohort |
RaftActorContext.getRaftActorLeadershipTransferCohort()
Returns the RaftActorLeadershipTransferCohort if leadership transfer is in progress.
|
Modifier and Type | Method and Description |
---|---|
void |
RaftActorContextImpl.setRaftActorLeadershipTransferCohort(RaftActorLeadershipTransferCohort leadershipTransferCohort) |
void |
RaftActorContext.setRaftActorLeadershipTransferCohort(RaftActorLeadershipTransferCohort leadershipTransferCohort)
Sets the RaftActorLeadershipTransferCohort for transferring leadership.
|
Modifier and Type | Method and Description |
---|---|
void |
Leader.transferLeadership(RaftActorLeadershipTransferCohort leadershipTransferCohort)
Attempts to transfer leadership to a follower as per the raft paper (ยง3.10) as follows:
Start a timer (Stopwatch).
Send an initial AppendEntries heartbeat to all followers.
On AppendEntriesReply, check if the follower's new match Index matches the leader's last index
If it matches,
Send an additional AppendEntries to ensure the follower has applied all its log entries to its state.
Send an ElectionTimeout to the follower to immediately start an election.
Notify
transferComplete() .
Otherwise if the election time out period elapses, notify
abortTransfer() .
|
Copyright © 2019 OpenDaylight. All rights reserved.