You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build failed in video/cloud-client/analyze with "The bucket you tried to delete was not empty". #4354
Traceback (most recent call last):
File "/workspace/video/cloud-client/analyze/beta_snippets_test.py", line 63, in bucket
bucket.delete(force=True)
File "/workspace/video/cloud-client/analyze/.nox/py-3-7/lib/python3.7/site-packages/google/cloud/storage/bucket.py", line 1360, in delete
timeout=timeout,
File "/workspace/video/cloud-client/analyze/.nox/py-3-7/lib/python3.7/site-packages/google/cloud/_http.py", line 423, in api_request
raise exceptions.from_http_response(response)
google.api_core.exceptions.Conflict: 409 DELETE https://storage.googleapis.com/storage/v1/b/tmp-8630953c5a584758ad851603d4dc1823: The bucket you tried to delete was not empty.
This should be an easy fix with something like force=True.
The test is using uuid4 for the bucket name, so it is unlikely that another build was using the same bucket. I think it's more likely a bug in the client library.
Activity
tmatsuo commentedon Jul 22, 2020
Oops, the code already uses
force=True. I'll take a deeper look.tmatsuo commentedon Jul 22, 2020
The test is using uuid4 for the bucket name, so it is unlikely that another build was using the same bucket. I think it's more likely a bug in the client library.
tmatsuo commentedon Jul 22, 2020
Maybe we can just retry harder upon 409 errors.
testing(videointelligence): retry harder upon 409s
testing(videointelligence): retry harder upon 409s (#4361)
testing(videointelligence): retry harder upon 409s [(#4361)](#4361)
testing(videointelligence): retry harder upon 409s [(#4361)](#4361)