GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Lingering buckets · Issue #968 · googleapis/google-cloud-node

Lingering buckets #968

New issue
Copy link
New issue
Copy link
Closed
Closed
Lingering buckets#968
Copy link
Assignees
callmehiphop
Labels
api: storageIssues related to the Cloud Storage API.

Description

@callmehiphop
callmehiphop
opened on Nov 25, 2015
Issue body actions

Occasionally I'll create a bucket for testing purposes and when I go to delete it, I'll get an error stating that the bucket can't be deleted because it contains files, if I attempt to list the files within it there aren't any. I've also seen this occur without modifying any of the ACLs.

I'm pretty sure this is an upstream error, however I'm opening this issue to verify that it isn't our client and to also raise visibility on this issue.

Activity

Next
  1. dhermes commented on Nov 25, 2015

    @dhermes
    dhermes
    on Nov 25, 2015
    Contributor
    More actions

    I believe it's because the Cloud Storage API is eventually consistent.

  2. stephenplusplus commented on Nov 25, 2015

    @stephenplusplus
    stephenplusplus
    on Nov 25, 2015
    Contributor
    More actions

    Related: #965 (comment)

  3. stephenplusplus
    added
    api: storageIssues related to the Cloud Storage API.
    on Nov 25, 2015
  4. callmehiphop commented on Nov 25, 2015

    @callmehiphop
    callmehiphop
    on Nov 25, 2015
    ContributorAuthor
    More actions

    @dhermes would you mind elaborating on that?

  5. dhermes commented on Nov 25, 2015

    @dhermes
    dhermes
    on Nov 25, 2015
    Contributor
    More actions

    Let's say objects A, B and C are in a bucket.

    If you delete A you'd expect that getting the list of objects in the bucket would return B and C. However, if you make the requests in rapid succession, the list of objects may be all of A, B and C.

    If you wait long enough (i.e. eventually, i.e. eventual consistency), you'll get the "correct" answer, which is just B and C.

  6. callmehiphop commented on Nov 25, 2015

    @callmehiphop
    callmehiphop
    on Nov 25, 2015
    ContributorAuthor
    More actions

    Gotcha, that would explain it. How long does it generally take for everything to become eventually consistent? I've run into a couple of scenarios where I wasn't able to delete buckets for several days.

  7. dhermes commented on Nov 25, 2015

    @dhermes
    dhermes
    on Nov 25, 2015
    Contributor
    More actions

    I'm not a GCS expert, just observing things we've run into with gcloud-python system tests with flaky failures.

    Several days is way outside the scope of what I was talking about. I meant on the order of seconds.

  8. stephenplusplus commented on Nov 25, 2015

    @stephenplusplus
    stephenplusplus
    on Nov 25, 2015
    Contributor
    More actions

    If something goes wrong during our system tests, we might end up with lingering buckets or files. But when we attempt to delete them, it's not always immediate (like during the same process that our tests run in); it's being denied from the Dev Console UI. The only way I've found around it is with gsutil: #965 (comment)

    I'm unsure how the CLI tool makes a request that the API honors that I can't replicate as a user in the Dev Console or a service account with our client library. It would be great to get some insight from the Storage team.

    // @jgeewax

  9. mziccard commented on Nov 25, 2015

    @mziccard
    mziccard
    on Nov 25, 2015
    Contributor
    More actions

    Quoting from the docs:

    DELETE Bucket operations can also be affected by the eventual consistency of list operations. DELETE Bucket operations are affected only when you delete all of the objects in a bucket and then immediately try to delete the bucket. In this case, the list of objects in the bucket might not immediately reflect the fact that the objects have been deleted and so the delete bucket operation fails. Delete operations on buckets that are already empty are strongly consistent: that is, if you delete an empty bucket and get a success response, any subsequent attempt to access the bucket will fail.

    In gcloud-java integration tests we put bucket delete inside a loop that first lists and deletes files then tries to delete bucket, if that fails we loop again. We set a timeout to end the loop so this is not guaranteed to work 100% but should reduce the amount of errors.

  10. stephenplusplus commented on Nov 25, 2015

    @stephenplusplus
    stephenplusplus
    on Nov 25, 2015
    Contributor
    More actions

    Thanks for that! I stumbled on that blurb while researching this issue and put it into effect just a couple minutes ago.

  11. stephenplusplus
    assigned
    jgeewax
    on Nov 30, 2015
  12. jgeewax commented on Nov 30, 2015

    @jgeewax
    jgeewax
    on Nov 30, 2015
    Contributor
    More actions

    /cc @rdayal. Apparently gsutil can do things that the UI can't? That's weird, right?

  13. stephenplusplus commented on Dec 1, 2015

    @stephenplusplus
    stephenplusplus
    on Dec 1, 2015
    Contributor
    More actions

    Here is a recreation of the failed delete process through the UI:

    screen shot 2015-12-01 at 8 40 46 am

    screen shot 2015-12-01 at 8 40 54 am

    screen shot 2015-12-01 at 8 41 09 am

    screen shot 2015-12-01 at 8 41 16 am

    And the bucket's metadata:

    {
      kind: 'storage#bucket',
      id: 'gcloud-test-bucket-temp-02b799c0-9303-11e5-ae1a-fdbce319d2fc',
      selfLink: 'https://www.googleapis.com/storage/v1/b/gcloud-test-bucket-temp-02b799c0-9303-11e5-ae1a-fdbce319d2fc',
      projectNumber: '1046198160504',
      name: 'gcloud-test-bucket-temp-02b799c0-9303-11e5-ae1a-fdbce319d2fc',
      timeCreated: '2015-11-24T23:35:49.288Z',
      updated: '2015-11-24T23:35:49.288Z',
      metageneration: '1',
      owner: { entity: 'project-owners-1046198160504' },
      location: 'US',
      versioning: { enabled: true },
      storageClass: 'STANDARD',
      etag: 'CAE='
    }
  14. stephenplusplus commented on Feb 26, 2016

    @stephenplusplus
    stephenplusplus
    on Feb 26, 2016
    Contributor
    More actions

    @rdayal is there more data we can provide that would make this easier to test? Have you heard of this before?

  15. jgeewax commented on Feb 29, 2016

    @jgeewax
    jgeewax
    on Feb 29, 2016
    Contributor
    More actions

    /cc @Capstan : Nathan -- any idea what's going on here ? Seems that the gsutil tool can do some things the UI won't do ?

  16. 18 remaining items

  17. miguelvelezsa
    added a commit that references this issue on Jan 28, 2026

    fix: change import long to require (#968)

    ebf3988
  18. sofisl
    added 4 commits that reference this issue on Jan 29, 2026

    chore(main): release 6.0.3 (#968)

    a02fd3d

    chore(main): release 6.0.3 (#968)

    e3b7d7a

    chore(nodejs): remove api-extractor dependencies (#968)

    7efbbae

    fix: change import long to require (#968)

    994a0c5
  19. sofisl
    added a commit that references this issue on Feb 17, 2026

    fix: change import long to require (#968)

    0793ccf
  20. sofisl
    added 2 commits that reference this issue on Feb 25, 2026

    refactor: use explicit mocha imports (#968)

    201687a

    chore: release 5.1.0 (#968)

    2820493
  21. GautamSharda
    added 2 commits that reference this issue on Mar 5, 2026

    test: reenable multiple entry test with null payload value (#968)

    d5e12fa

    docs: update proto comments (#968)

    3152af2
  22. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    refactor: use explicit mocha imports (googleapis#968)

    2f6e076
  23. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    chore: add api_shortname and library_type to repo metadata (#968)

    8affd0c

    chore: add api_shortname and library_type to repo metadata (#968)

    c70d887
  24. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    chore: add api_shortname and library_type to repo metadata (#968)

    adf30d4
  25. thiyaguk09
    added a commit that references this issue on May 5, 2026

    chore: add api_shortname and library_type to repo metadata (googleapi…

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

Metadata

Metadata

Assignees

  • @callmehiphop
    callmehiphop

Labels

api: storageIssues related to the Cloud Storage API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.