Skip to content
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

[BEAM-7424] Retry HTTP 429 errors from GCS #8933

Merged
merged 1 commit into from Jun 29, 2019
Merged

Conversation

ihji
Copy link
Contributor

@ihji ihji commented Jun 24, 2019

matching Python SDK GCS retrying threshold to Java SDK GCS retrying threshold.

For Java SDK, retrying threshold for GCS is 15 min. To match the similar threshold in Python SDK, the maximum number of retry is increased to 20.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Python Build Status
Build Status
--- Build Status
Build Status
Build Status --- --- Build Status

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

match Python SDK retrying threshold to Java SDK threshold.
@ihji
Copy link
Contributor Author

ihji commented Jun 26, 2019

R: @chamikaramj

@ihji
Copy link
Contributor Author

ihji commented Jun 26, 2019

CC: @robinyqiu

@@ -52,7 +52,7 @@ def __init__(self, url='', credentials=None,
super(StorageV1, self).__init__(
url, credentials=credentials,
get_credentials=get_credentials, http=http, model=model,
log_request=log_request, log_response=log_response,
log_request=log_request, log_response=log_response, num_retries=20,
Copy link
Contributor

Choose a reason for hiding this comment

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

This client is autogenerated so this code might get replaced when this client is generated next time. Can you also send a PR to apitools so that the default number of retries is increased for the GCS client.

@chamikaramj
Copy link
Contributor

LGTM. Thanks.

@chamikaramj
Copy link
Contributor

Run Python PreCommit

@ihji
Copy link
Contributor Author

ihji commented Jun 27, 2019

run python precommit

@chamikaramj
Copy link
Contributor

Run Python PreCommit

4 similar comments
@chamikaramj
Copy link
Contributor

Run Python PreCommit

@Hannah-Jiang
Copy link
Contributor

Run Python PreCommit

@chamikaramj
Copy link
Contributor

Run Python PreCommit

@chamikaramj
Copy link
Contributor

Run Python PreCommit

@chamikaramj chamikaramj merged commit 30fa5d8 into apache:master Jun 29, 2019
@ihji ihji deleted the BEAM-7424 branch July 1, 2019 18:33
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.

None yet

3 participants