Skip to content

[DRAFT] fix(bigquery): avoid SSLError retry loop#17489

Draft
daniel-sanche wants to merge 7 commits into
mainfrom
bigquery_dont_retry_ssl
Draft

[DRAFT] fix(bigquery): avoid SSLError retry loop#17489
daniel-sanche wants to merge 7 commits into
mainfrom
bigquery_dont_retry_ssl

Conversation

@daniel-sanche

Copy link
Copy Markdown
Contributor

b/391888240

Previously, invalid requests like incorrect table schemas would result in SSLErrors, which would then be retried to the default timeout value. SSLErrors generally won't resolve on retry.

This PR marks SSLErrors as non-retryable, and catches the exception to add clearer error context when involved in an insert_rows operation

@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 ensures that requests.exceptions.SSLError is not retried during insert_rows_json operations and wraps the exception with a descriptive error message. It also adds corresponding unit and system tests. The feedback suggests wrapping the system test logic in a try...finally block to guarantee that the created table is cleaned up even if assertions fail.

Comment thread packages/google-cloud-bigquery/tests/system/test_ssl_retry.py Outdated
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.

2 participants