output: Pass update_retry as a keyword in the secondary rollback_write #5636
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.36) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 205 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.319
Real PR Conversation Timeline
1 comments
"Review active on #5636"
general
weight: 0.35
lbarrosby
Which issue(s) this PR fixes:
Fixes #5633
What this PR does / why we need it:
acts_as_secondarydefinesrollback_writeon the secondary so that it delegates to the primary, but it passedupdate_retryas a positional argument.Output#rollback_write(chunk_id, update_retry: true)has taken it as a keyword since 59a47a19, so the delegation always raisedArgumentError: wrong number of arguments (given 2, expected 1).A delayed commit output used as
<secondary>, such asout_forwardwithrequire_ack_response true, callsrollback_writewhen the ack times out. The error was logged asunexpected error while receiving ack. The chunk was not taken back, so it was not sent again.This passes
update_retry: update_retry, as the issue suggests.Tests:
test_output_as_buffered_secondary.rb. The secondary dequeues a chunk and callsrollback_writewithupdate_retry: falseand with the default. The chunk must go back to the queue, andupdate_retry_statemust be called only with the default. On master both cases raise theArgumentError.test/plugin/test_output_as_buffered_secondary.rb15 tests,test_output.rb141 tests,test_output_as_buffered_retries.rb14 tests: 0 failures.Docs Changes:
None.
Release Note:
Fix
rollback_writeon a<secondary>output, which always raised ArgumentError.