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

Appearance settings

Adding 409 retry on bucket delete in BigQuery system test.#2310

Merged
dhermes merged 1 commit into
googleapis:mastergoogleapis/google-cloud-python:masterfrom
dhermes:bigquery-409-bucket-deletedhermes/google-cloud-python:bigquery-409-bucket-deleteCopy head branch name to clipboard
Sep 15, 2016
Merged

Adding 409 retry on bucket delete in BigQuery system test.#2310
dhermes merged 1 commit into
googleapis:mastergoogleapis/google-cloud-python:masterfrom
dhermes:bigquery-409-bucket-deletedhermes/google-cloud-python:bigquery-409-bucket-deleteCopy head branch name to clipboard

Conversation

@dhermes

@dhermes dhermes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor

As with #2307, I took down a bunch of failures last week and can't track down where this occurred, sorry.

@dhermes dhermes added api: storage Issues related to the Cloud Storage API. testing api: bigquery Issues related to the BigQuery API. flaky labels Sep 13, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 13, 2016
@dhermes

dhermes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor Author

I'm not sure if we should check more than 409, there isn't much in the error:

>>> print(json.dumps(exc._errors, indent=2))
[
  {
    "domain": "global",
    "message": "The bucket you tried to delete was not empty.",
    "reason": "conflict"
  }
]
>>> exc.message
u'The bucket you tried to delete was not empty. (DELETE https://www.googleapis.com/storage/v1/b/{BUCKET})'

@daspecster

Copy link
Copy Markdown
Contributor

409 could in theory...have many different messages attached to it.

Could we retry but also log/print the message incase it changes?

@daspecster

Copy link
Copy Markdown
Contributor

Otherwise LGTM if you don't think we should log it.

@dhermes

dhermes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor Author

Could we retry but also log/print the message incase it changes?

Sure, but we wouldn't see it on CI, unless it failed.

I've been meaning to make the GoogleCloudError representation more verbose so we get more info.

@tseaver

tseaver commented Sep 14, 2016

Copy link
Copy Markdown
Contributor

LGTM

@dhermes dhermes merged commit 1f7ed9d into googleapis:master Sep 15, 2016
@dhermes dhermes deleted the bigquery-409-bucket-delete branch September 15, 2016 00:09
@dhermes dhermes mentioned this pull request Sep 19, 2016
parthea pushed a commit that referenced this pull request Apr 1, 2026
Thank you for opening a Pull Request! Before submitting your PR, there
are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a
[bug/issue](https://github.com/googleapis/python-bigquery-dataframes/issues/new/choose)
before writing your code! That way we can discuss the change, evaluate
designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes b/447388852 🦕
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the BigQuery API. api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement. testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.