feat(share-consumer): renew the acquisition lock of a message #561
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 422 lines diff across 5 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.362
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #561"
general
weight: 0.35
ShogunPanda
Next part of #480, following #560 (explicit acknowledgements):
message.acknowledge('renew'), which extends the acquisition lock of a record that takes long to process.What it does
acknowledge('renew')renews the lock of the record. The record stays with the member and still needsaccept,releaseorrejectafterwards. It can be renewed more than once.isRenewAckonly when it fetches nothing. So it goes on its own, with ShareAcknowledge andisRenewAck, right away when the session is idle, or right after the request in flight on that broker. Other pending acknowledgements of the session go with it.accept,releaseorrejectqueued before the renew is sent replaces it, and a second renew of the same record is not queued twice. Closing the stream releases a renewed record like any other unacknowledged one.acknowledge('renew')throws.acceptwould acknowledge a new delivery of the record.Checked on the broker
On
cp-kafka:8.2.0, by hand:isRenewAck: falsefails with INVALID_REQUEST, andisRenewAck: trueaccepts other types in the same requestisRenewAck: trueneedsmaxWaitMs,minBytes,maxBytesandmaxRecordsat 0, and acquires nothingmaxWaitTime.Tests