Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(bigquery): add timeout parameter to QueryJob.done() method#9875

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
plamut merged 6 commits intogoogleapis:masterfromplamut:iss-7831
Dec 19, 2019

Conversation

@plamut
Copy link
Contributor

@plamutplamut commentedNov 21, 2019
edited
Loading

Fixes#7831.
Requires#9873.

This is a proposed fix for thedone() method getting stuck. It makes sure that the underlying HTTP request does not block indefinitely when retrieving query results, and that any underlyingrequests exceptions are retriable.

TODO

@plamutplamut added type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design. api: bigqueryIssues related to the BigQuery API. labelsNov 21, 2019
@plamutplamut requested a review fromtswastNovember 21, 2019 15:01
@googlebotgooglebot added the cla: yesThis human has signed the Contributor License Agreement. labelNov 21, 2019
@plamut
Copy link
ContributorAuthor

@tswast Ditched the custom HTTP adapter, and leveraged the new connectiontimeout parameter from#9915. The changes are now minimal, and can be easily applied to other client methods that would benefit from a timeout.

tswast reacted with thumbs up emoji

@plamutplamutforce-pushed theiss-7831 branch 6 times, most recently from87d74f7 to2044a84CompareDecember 11, 2019 07:48
@plamutplamut added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelDec 11, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelDec 11, 2019
@plamut
Copy link
ContributorAuthor

A snippets test failed, seems like flakiness (it passed on several previous runs). Re-running.

In addition, fix the timeout logic in QueryJob.done() - the timeoutsare in different units (seconds vs. milliseconds)
The new timeout feature requires more recent versions of the API coreand google auth dependencies.
@plamutplamut marked this pull request as ready for reviewDecember 17, 2019 11:05
@plamutplamut requested review froma team andtswastDecember 17, 2019 11:05
If the server-side processing timeout is used (the `timeout_ms` APIparameter) as the total timeout, it should be slightly longer thanthe actual server-side timeout in order to not timeout the connectionwhile there might still be chance that the server-side processinghas actually completed.
@plamutplamut requested a review fromtswastDecember 18, 2019 23:45
Copy link
Contributor

@tswasttswast left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tswasttswasttswast approved these changes

Assignees

No one assigned

Labels

api: bigqueryIssues related to the BigQuery API.cla: yesThis human has signed the Contributor License Agreement.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

BigQuery:QueryJob().done() method gets stuck

4 participants

@plamut@tswast@googlebot@yoshi-kokoro

[8]ページ先頭

©2009-2025 Movatter.jp