Title: bigquery: SSLError marked globally non-retryable (#17489) fails jobs.get / result() polling on transient TLS resets · Issue #18178 · googleapis/google-cloud-python · GitHub
Open Graph Title: bigquery: SSLError marked globally non-retryable (#17489) fails jobs.get / result() polling on transient TLS resets · Issue #18178 · googleapis/google-cloud-python
X Title: bigquery: SSLError marked globally non-retryable (#17489) fails jobs.get / result() polling on transient TLS resets · Issue #18178 · googleapis/google-cloud-python
Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue #17489 ("avoid SSLError retry loop", released in 3.42.2) added requests.exceptions.SSLError to a new _UN...
Open Graph Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue #17489 ("avoid SSLError retry loop", released in 3.42.2) added r...
X Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue #17489 ("avoid SSLError retry loop", released in 3.42....
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/18178
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bigquery: SSLError marked globally non-retryable (#17489) fails jobs.get / result() polling on transient TLS resets","articleBody":"### Determine this is the right repository\n\n- [x] I determined this is the correct repository in which to report this bug.\n\n### Summary of the issue\n\n[#17489](https://github.com/googleapis/google-cloud-python/pull/17489) (\"avoid SSLError retry loop\", released in 3.42.2) added `requests.exceptions.SSLError` to a new `_UNSTRUCTURED_NON_RETRYABLE_TYPES` and short-circuits `_should_retry` on it\n([`retry.py:46,76-77`](https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-bigquery/google/cloud/bigquery/retry.py#L46)).\n\nThe PR's motivating case is `insert_rows_json`, but `_should_retry` is not that method's predicate — it is the base predicate for every retry surface in the client. As a result **a single transient TLS reset now fails any API call**, where 3.40.1 retried it as the `requests.exceptions.ConnectionError` subclass it is.\n\n#### Expected vs. actual\n\nA transient `SSLEOFError` (peer or middlebox dropping the socket mid-handshake) is a transport error and was retried to `DEFAULT_RETRY`'s 600 s deadline in 3.40.1 — `retry.py` there has no `_UNSTRUCTURED_NON_RETRYABLE_TYPES` at all, so `_should_retry` fell through to the `isinstance` check against `_UNSTRUCTURED_RETRYABLE_TYPES`, which contains `requests.exceptions.ConnectionError` (and `requests` makes `SSLError` a subclass of it deliberately). In 3.42.2 the same blip raises on the first occurrence.\n\n### API client name and version\n\ngoogle-cloud-bigquery: 3.42.2 (first release with the change) — still present in 3.43.0\n\n### Reproduction steps: code\n\n_No response_\n\n### Reproduction steps: supporting files\n\n_No response_\n\n### Reproduction steps: actual results\n\n_No response_\n\n### Reproduction steps: expected results\n\n_No response_\n\n### OS & version + platform\n\nContainer-Optimized OS (GKE, Cloud Composer 3)\n\n### Python environment\n\nPython: 3.11\n\n### Python dependencies\n\n_No response_\n\n### Additional context\n\n#### What we actually observe in production\n\nDeferred `BigQueryInsertJobOperator` tasks (Airflow 3.2 / Composer 3) poll `jobs.get` every 4 s. Since upgrading to an image carrying 3.42.2, polls fail like this — and each failure fails the task and re-submits the query, on jobs that are `RUNNING` and healthy:\n\n```\nHTTPSConnectionPool(host='bigquery.googleapis.com', port=443): Max retries exceeded with url: /bigquery/v2/projects/\u003cproject>/jobs/\u003cjob>?projection=full&location=EU (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol')))\n```\n\n49 such events across ~20 different DAGs in ~19 h; zero on the same workload while it ran 3.40.1. Note the URL family: `jobs.get` — a GET with no request body, so no schema can be involved. Note also that `google.auth.transport.requests.AuthorizedSession` mounts `HTTPAdapter(max_retries=3)` on the **auth** session only, so nothing below the client retries the data request either: identical resets on an IAM refresh call recover silently, while `jobs.get` fails outright.","author":{"url":"https://github.com/evgeniy-b","@type":"Person","name":"evgeniy-b"},"datePublished":"2026-08-20T12:08:42Z","url":"https://github.com/googleapis/google-cloud-python/issues/18178"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f24a3b45-94da-df14-8291-81f4a8b7a9d0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C74A:37FB1B:27180:3553A:6AFE11DE |
| html-safe-nonce | 1106221a04a826ab5f542dea42a2da3910a383a8db91f9381aeb49713c4cca62 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzRBOjM3RkIxQjoyNzE4MDozNTUzQTo2QUZFMTFERSIsInZpc2l0b3JfaWQiOiIxMDMwMzgzNDEzNjgyMzc3MTgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 22c7f19fdb11e9253f0de8599e9b7689eb2a1cdf27c20cf6ceb3e67c2b4c8716 |
| hovercard-subject-tag | issue:5203219967 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/18178/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b5efc5b65f32756bb63840d1f166579f8f629e03d936031f296edbdf6f982359/googleapis/google-cloud-python/issues/18178 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b5efc5b65f32756bb63840d1f166579f8f629e03d936031f296edbdf6f982359/googleapis/google-cloud-python/issues/18178 |
| og:image:alt | Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue #17489 ("avoid SSLError retry loop", released in 3.42.2) added r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | evgeniy-b |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3cd8a1d79ccbf9aecac62781f79072482a49047fb982b8c9e2ad4aca8bf6a9af |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 05539640a34afe6142a519483d78ddd766a1304a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width