SOLR-18656: Report a stalled update stream as an error for its node #5330
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.36) × (1 − Review Confidence (0.93)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 68 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.94 · 4 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
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.253
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
6 items
Automated PR readiness judgements (LLM-generated; may be wrong; not updated on later pushes).
<!-- Assessed commit eedcb534aca361be5bad5c56f1b2d3002eea855f -->
@dsmiley @gerlowskija @serhiy-bzhezytskyy, adding you as reviewers since you know StreamingSolrClients and the ConcurrentUpdate* clients best. This makes a stalled update stream report as an error for its node instead of hanging quietly. Thanks for taking a look whenever you have time.
then does it still throw IOException?
Approved
Nice!
Thanks @dsmiley, it doesn't anymore. Dropped it, and merged main.
dsmiley
sarkaramrit1993
🤖 Generated with Claude
https://issues.apache.org/jira/browse/SOLR-18656
Description
When one replica's update stream stalls with updates still queued,
StreamingSolrClients.blockUntilFinished()throws andSolrCmdDistributor.finish()only logs it. Retries are skipped and errors already collected from other replicas are dropped, so the leader returns success and failed replicas aren't put into a lower term.Solution
Catch the stall per client and report it through that client's
handleError. The other clients are still waited on and retried. DBQ and commit used to fail the whole request on a stall; they now record an error for that node.A stream that stalls after its queue is drained isn't changed: stall detection needs a non-empty queue, so that still waits for the socket timeout.
Tests
SolrCmdDistributorTest.testStallKeepsErrorsFromOtherNodes: one node never reads, another refuses. On maingetErrors()is empty.Related: SOLR-5939 / #5075 touches the same error path.