Expand description
Unified checkpoint coordination. Unified checkpoint coordinator.
Single orchestrator for checkpoint lifecycle. Lives in Ring 2 (control plane).
The checkpoint manifest is the source of truth for source offsets. Kafka broker commits are advisory (for monitoring tools). On recovery, offsets restore from manifest, not consumer group state.
§Checkpoint Cycle
- Barrier injection —
CheckpointBarrierInjector.trigger() - Operator snapshot —
OperatorGraph.snapshot_state()→ operator states - Source snapshot —
source.checkpoint()for each source - Sink pre-commit —
sink.pre_commit(epoch)for each exactly-once sink - Manifest persist —
store.save(&manifest)(atomic write) - Sink commit —
sink.commit_epoch(epoch)for each exactly-once sink - On ANY failure at 6 —
sink.rollback_epoch()on remaining sinks
Structs§
- Checkpoint
Config - Unified checkpoint configuration.
- Checkpoint
Coordinator - Unified checkpoint coordinator.
- Checkpoint
Request - Parameters for a checkpoint operation.
- Checkpoint
Result - Result of a checkpoint attempt.
- Checkpoint
Stats - Checkpoint performance statistics.
- Duration
Histogram - Fixed-size ring buffer for duration percentile tracking.
Enums§
- Checkpoint
Phase - Phase of the checkpoint lifecycle.
Functions§
- connector_
to_ source_ checkpoint - Converts a
ConnectorCheckpointback to aSourceCheckpoint. - source_
to_ connector_ checkpoint - Converts a
SourceCheckpointto aConnectorCheckpoint.