public class LeadershipTransferTask extends Object implements Runnable
TriggerLeaderElection
request to the endpoint given in
LeadershipTransferState.endpoint()
. Before sending this request,
the append request backoff state of the endpoint is reset and
an AppendRequest
is also sent.
This task waits until all appended entries are committed in the current leader before starting the leadership transfer, and reschedules itself if the local Raft node is still leader or there are uncommitted log entries.
Copyright © 2019 Hazelcast, Inc.. All rights reserved.