pub enum FailurePolicy {
Stop,
Skip,
}Expand description
What the pipeline does when a sink rejects a document at the item level —
it accepted the batch but refused a specific document (a mapping conflict, a
malformed value). Distinct from a flush-wide failure, which always stops the
run. Set globally on the config and overridable per index (both live in the
schema crate’s Config/Index, which assemble this policy).
Variants§
Stop
Stop the run on the first rejected document. The batch is left unconfirmed and redelivered on restart, so a persistently-bad document halts sync until the data is fixed or the policy is changed. The default, because dropping data should be opt-in.
Skip
Quarantine each rejected document (surfaced via metrics/status and logs) and continue: the rest of the batch is applied, the slot advances, and the poison is not redelivered — it simply never lands until its source row changes again.
Trait Implementations§
Source§impl Clone for FailurePolicy
impl Clone for FailurePolicy
Source§fn clone(&self) -> FailurePolicy
fn clone(&self) -> FailurePolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more