Skip to content

Follower Ready

FOLLOWER_READY - publish AppendPosition to leader, then closes the Election

On Entry

Enters from FOLLOWER_LOG_INIT or FOLLOWER_LOG_AWAIT. Everything is ready, just need to send one last AppendPosition to the leader.

Description

It publishes its AppendPosition to the leader, confirming its position.

It then notifies the ConsensusModuleAgent that the election is complete, which does the following (this is a cut-down version of what the leader does in LEADER_READY):

  • activates the Cluster Control Toggle by setting it to NEUTRAL, so it can be used to request new actions (it was deactivated in INIT)
  • a new RecoveryPlan is created
  • it connects the Ingress - the doors are open for business!
  • the ConsensusModuleAgent sets its election field to null, throwing away the Election object

It then moves to CLOSED.

On Exit

The Ingress is reconnected.

The Election moves to the CLOSED state and is discarded by the Consensus Module.