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 moreimpl Copy for FailurePolicy
Source§impl Debug for FailurePolicy
impl Debug for FailurePolicy
Source§impl Default for FailurePolicy
impl Default for FailurePolicy
Source§fn default() -> FailurePolicy
fn default() -> FailurePolicy
Source§impl<'de> Deserialize<'de> for FailurePolicy
impl<'de> Deserialize<'de> for FailurePolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for FailurePolicy
Source§impl PartialEq for FailurePolicy
impl PartialEq for FailurePolicy
Source§fn eq(&self, other: &FailurePolicy) -> bool
fn eq(&self, other: &FailurePolicy) -> bool
self and other values to be equal, and is used by ==.