Skip to content

fix(bigquery): limit ssl error workaround to insert_rows - #18295

Open
daniel-sanche wants to merge 1 commit into
mainfrom
fix_bigquery_retries
Open

fix(bigquery): limit ssl error workaround to insert_rows#18295
daniel-sanche wants to merge 1 commit into
mainfrom
fix_bigquery_retries

Conversation

@daniel-sanche

Copy link
Copy Markdown
Contributor

Reduces the scope of #17489. Previously, all SSLErrors were marked as non-retryable. Now, this is only the case for insert_rows requests

Fixes #18178

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new default retry configuration specifically for streaming inserts, DEFAULT_INSERT_ROWS_RETRY, which avoids retrying on SSLError (often indicating schema mismatches in streaming inserts). Meanwhile, the standard DEFAULT_RETRY is updated to allow retrying on SSLError for other API calls. The insert_rows_json method is updated to use this new retry configuration by default and to properly handle wrapped RetryError exceptions. Corresponding unit and system tests have been added and updated. There are no review comments, so I have no feedback to provide.

@daniel-sanche
daniel-sanche marked this pull request as ready for review September 4, 2026 21:19
@daniel-sanche
daniel-sanche requested review from a team as code owners September 4, 2026 21:19
@daniel-sanche
daniel-sanche requested review from shuoweil and removed request for a team September 4, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bigquery: SSLError marked globally non-retryable (#17489) fails jobs.get / result() polling on transient TLS resets

1 participant