-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Big query retries during create read session #15013
Big query retries during create read session #15013
Conversation
@vlad-lyutenko let's use Failsafe here and for the other case as well (separate commit will be needed) |
Have you already faced the issue or is it an assumption? |
@ebyhr It's seen occasionally on CI but I can't find a recent link - here's a stack trace:
|
|
||
return readSession; | ||
int retries = 0; | ||
do { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use failsafe
@@ -36,7 +36,8 @@ | |||
private static final Set<String> INTERNAL_ERROR_MESSAGES = ImmutableSet.of( | |||
"HTTP/2 error code: INTERNAL_ERROR", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any failsafe policy that is based on this that you can reuse?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot find, and looks like I can't move failsafe policy to Utility class, because retry count is fetched from config
2acf942
to
69f0634
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the commit title as:
Support retrying to create BigQuery read session
"Big query" isn't the correct product name and please follow https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md#format-git-commit-messages
plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/ReadSessionCreator.java
Show resolved
Hide resolved
plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/ReadSessionCreator.java
Outdated
Show resolved
Hide resolved
69f0634
to
8054f84
Compare
fixed |
Merged, thanks! |
Description
After some code investigation I found out that we have some logic of retries in bigquery connector. But as far as I understand this retry logic is applied only after we successfully create read session and executing read itself (during getting next page) :
Similar exception could occur during Read Session creation.
So this PR introduce exact same retry logic for read session creation as we have for read pages.
Maybe we should go with Failsafe here.
Non-technical explanation
Release notes
( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(x) Release notes are required, with the following suggested text: