Bedrock.ControlPlane.Director.Recovery.SequencerStartupPhase (bedrock v0.5.2)
View SourceSolves the fundamental ordering problem by starting the sequencer component that provides authoritative global version numbers for all transactions.
Without global ordering, transaction processing would collapse as different components assign conflicting version numbers to concurrent transactions. The sequencer is a critical singleton component where only one instance runs cluster-wide to ensure consistent version assignment.
Starts the sequencer process on the director's current node with the last committed version from the version vector as the starting point. The sequencer assigns version numbers incrementally from this baseline, ensuring no gaps or overlaps in the sequence. Configured with current epoch, director PID, and OTP name for service coordination.
Immediately halts recovery with a fatal error if sequencer startup fails, since version assignment is fundamental to transaction processing. Unlike temporary resource shortages, sequencer startup failure indicates serious system problems requiring immediate attention.
Transitions to proxy startup once the sequencer is operational and ready.
Summary
Functions
Execute the sequencer startup phase of recovery.