[ZEPPELIN-5758] Raise BigQuery HTTP client timeout so large wait_time values work #5545
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 194 lines diff across 2 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.315
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5545"
general
weight: 0.35
jongyoul
What is this PR for?
zeppelin.bigquery.wait_timeis passed to BigQuery'sjobs.queryas the server-sidetimeoutMs, telling the server how long to wait for the query result before replying. The HTTP client (NetHttpTransport), however, kept its default read timeout (~20s). As a result, settingwait_timebeyond that threshold threwjava.net.SocketTimeoutException: Read timed outbefore the server responded, making the setting unusable above ~30s.This wraps the Bigquery client credential in an
HttpRequestInitializerthat sets the connect/read timeouts to 200s. BigQuery'sgetQueryResultsalways returns within ~200s regardless of whether the job has completed, so a larger timeout provides no value. The credential's owninitialize()is still invoked first, so OAuth token refresh behavior is preserved.What type of PR is it?
Bug Fix
Todos
[x] - Wrap the client credential with connect/read timeouts
[x] - Add a unit test
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-5758
How should this be tested?
./mvnw test -pl bigquery --am -Dtest=BigQueryInterpreterTimeoutTestBigQueryInterpreterTimeoutTestverifies the initializer delegates to the wrapped credential and applies the 200s connect/read timeouts. It is a separate class becauseBigQueryInterpreterTestis excluded from the build (it needs live BigQuery credentials).Questions:
Does the license files need to be updated? No
Is there breaking changes for older versions? No