Skip to main content

POSITION_CONFLICT

Constant POSITION_CONFLICT 

Source
pub const POSITION_CONFLICT: &'static str;
Expand description

The position was already held, and the store could not establish that the row already there is this same event.

On a collision the store reads the stored payload back and compares it with what it was asked to write. Identical bytes mean a replay of the event already recorded, which loses nothing and is not counted. This label covers the rest: the stored event is a different one, or the comparison could not be made (the read-back failed, or the event would not serialize). It errs towards reporting.

A non-zero rate is the shape the design has no other defence against: two writers numbering one task’s log. Look for a second replica serving the same task id.