fix(sinks): report preparation failures in acknowledgements #27302
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 309 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.343
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #27302"
general
weight: 0.35
pront
Summary
Motivation
A sink could acknowledge events as delivered after partitioning or encoding failed, even though it never sent a request. Sources with end-to-end acknowledgements enabled now receive the failure status.
The shared batcher handles routing, intentional discard, and failure explicitly. Both request builders carry finalizers through encoding and report failures for the affected event, request, or chunk. Transient failures use a retryable acknowledgement.
References
Closes #23366
Closes #25191
Vector configuration
The end-to-end YAML fixture uses a JSON
http_serversource with acknowledgements enabled and anhttpsink with{{ route }}in its URI path. Both endpoints run on local test ports.How did you test this PR?
Does this PR include user facing changes?
For a new deprecation announcement, follow the deprecation policy and add a
deprecation.d/notice instead.no-changeloglabel to this PR.Contributor Guidelines
@vectordotdev/vectorto reach out to us regarding this PR.- Feel free to push as many commits as you want. They will be squashed into one before merging.
- For example, you can run
git merge origin masterandgit push.