Fail PPL queries refused by a saturated SQL worker pool with 429 #5915
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 255 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.332
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5915"
general
weight: 0.35
Swiddis
Description
When the SQL worker thread pools were full, a new PPL query was dropped without an error. A normal query never got a response, and an async query showed
RUNNINGforever and was never cleaned up.The query was handed to
sql-workerandsql-complex-workerthroughThreadPool.schedulewith a zero delay. The pool's rejection then happened on the scheduler thread, so it never reached the query.Now the query is handed to the pool directly, and a rejection fails the query right away with
429"thread pool is saturated; retry later":429.429. If the query's id was already returned, GET reports itFAILEDwith the same error.A rejection by
sql-complex-workeris reported straight to the query, so it does not fall back to the V2 engine and run again on the same busy node.Normal execution does not change: the query runs on the same pool, with the same thread context.
Related Issues
Part of #5801
<!-- List any other related issues here -->
Parent: #5765
Check List
- [x] New functionality has javadoc added.
- [x] New functionality has a user manual doc added.
--signoffor-s.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.