Skip to content

Should functional blob and bucket operations enforce metageneration match upon updates #194

Closed

Description

@aozarov

This topic was also discussed in #171.

Currently the functional blob and bucket pin to their metadata and provide the user with the option of enforcing metadata version check in updates operation. However this check is not triggered by default.

An alternative to what we have now is to enforce the version check by default and to provide options to disable the check instead.

Activity

  1. added
    type: questionRequest for information or clarification. Not an issue.
    api: storageIssues related to the Cloud Storage API.
    on Sep 30, 2015
  2. aozarov commented on Sep 30, 2015

    @aozarov
    ContributorAuthor

    My preference is to keep the existing way (no enforcement by default but have an option to support such check).

  3. mziccard commented on Oct 1, 2015

    @mziccard
    Contributor

    I am +1 for not checking by default and adding an option.

  4. aozarov commented on Oct 1, 2015

    @aozarov
    ContributorAuthor

    @mziccard Just to make sure I understand your preference.
    Is your preference to keep the existing way or are you suggesting to add a new option?

  5. mziccard commented on Oct 1, 2015

    @mziccard
    Contributor

    @aozarov I want to keep update as it is (no enforment by default). If we want we can add support for generation checks by allowing something like:

    blob.update(newInfo, 
      UpdateOptions.generationMatch(), UpdateOptions.metagenerationMatch());
  6. aozarov commented on Oct 1, 2015

    @aozarov
    ContributorAuthor

    Ok, thanks for making it clear.

    Isn't that already supported?

    blob.update(newInfo,
        BlobTargetOption.generationMatch(), BlobTargetOptions.metagenerationMatch());
  7. mziccard commented on Oct 1, 2015

    @mziccard
    Contributor

    Yeah my bad :) Then it's ok how it is for me!

  8. mziccard commented on Jul 22, 2016

    @mziccard
    Contributor

    This has been open for a while. As I already said I believe that the way we do these checks now is ok and consistent with other uses of generationMatch() and metagenerationMatch() options. I am closing this. Feel free to reopen if you believe we should give this more thoughts.

  9. 10 remaining items

  10. added a commit that references this issue on Dec 22, 2025
  11. added a commit that references this issue on Jan 6, 2026
  12. added a commit that references this issue on Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions