#[non_exhaustive]pub struct CheckpointSection {
pub interval: Duration,
pub max_pending_batches: usize,
pub drain_timeout: Duration,
pub stalled_fail_after: Duration,
}Expand description
Watermark commit policy (checkpoint:).
Construct with CheckpointSection::default and set the fields. The
struct is #[non_exhaustive] so new knobs can be added without breaking
callers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.interval: DurationHow often committable watermarks are flushed to the source.
max_pending_batches: usizeHard per-partition ceiling on unacknowledged batches. A partition at the ceiling has its lanes skipped at the poll boundary until acknowledgments retire batches. No pause is involved, and other partitions are unaffected. Bounds tracker memory and the replay a stalled partition can accumulate.
drain_timeout: DurationShutdown/rebalance drain budget. Must be comfortably below the pod’s
terminationGracePeriodSeconds.
stalled_fail_after: DurationA partition watermark stalled behind a failed batch for longer than
this fails the pipeline. Failed batches only stall watermarks
permanently (their data replays after restart), so this converts a
permanent sink failure (a dropped table, revoked credentials) into a
clean Failed exit and a restart instead of a process that runs on
forever, consuming the source but committing nothing for that
partition.