Skip to content

Build failed in video/cloud-client/analyze with "The bucket you tried to delete was not empty". #4354

Closed

Description

@tmatsuo

Build

Log:

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.

Activity

  1. self-assigned this
    on Jul 22, 2020
  2. tmatsuo commented on Jul 22, 2020

    @tmatsuo
    ContributorAuthor

    Oops, the code already uses force=True. I'll take a deeper look.

  3. added
    api: videointelligenceIssues related to the Video Intelligence API API.
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Jul 22, 2020
  4. tmatsuo commented on Jul 22, 2020

    @tmatsuo
    ContributorAuthor

    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.

  5. tmatsuo commented on Jul 22, 2020

    @tmatsuo
    ContributorAuthor

    Maybe we can just retry harder upon 409 errors.

  6. added a commit that references this issue on Jul 22, 2020
    dbec7a2
  7. added a commit that references this issue on Jul 23, 2020
    8738b67
  8. added a commit that references this issue on Sep 11, 2023
    5864c70
  9. added a commit that references this issue on Sep 15, 2023
    928b57e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: videointelligenceIssues related to the Video Intelligence API API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions