async fn scatter(
p: &Proxy,
path: &str,
bodies: Vec<(usize, Vec<u8>)>,
) -> Result<(), (StatusCode, String)>Expand description
Send each sub-export to its replica and answer once they all have.
All of them, not a quorum: a 200 to an OTLP exporter means the batch is stored, and there is no second place for the part that was not. A partial failure is a 503 for the whole export, so the exporter retries the whole batch — which re-delivers the sub-exports that did land.
ponytail: at-least-once on a partial failure, which is what OTLP already is end to end (a collector that times out on a 200 in flight does the same thing). Making it exactly-once needs an idempotency key on the export and a seen-set on the node, which is per-reader coordination state — principle 4 again — for a duplicate the query layer is already built to tolerate.