Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check preconditions when reading. #561

Merged
merged 1 commit into from Jul 20, 2021

Conversation

fejta
Copy link
Contributor

@fejta fejta commented Jul 20, 2021

The official storage client does this incorrectly: it uses the XML api for reads but sends ifGenerationMatch
parameters (for the json api) rather than the required x-goog-if-generation-match headers. So instead check
this manually when the response comes back.

Also:

  • fix some related issues (cannot use the testgroup's conditions to read objects, similar thing for reading
    the config).
  • Only fix the update time if the group already exists and has a written state
  • Only fix the heap when the update time changes.

@google-oss-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chases2, fejta

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

The official storage client does this incorrectly: it uses the XML api for reads but sends ifGenerationMatch
parameters (for the json api) rather than the required x-goog-if-generation-match headers. So instead check
this manually when the response comes back.

Also fix some related issues (cannot use the testgroup's conditions to read objects, similar thing for reading
the config).
@google-oss-robot google-oss-robot merged commit 9ae7fd8 into GoogleCloudPlatform:master Jul 20, 2021
@fejta fejta deleted the ancient branch July 20, 2021 23:46
@fejta
Copy link
Contributor Author

fejta commented Jul 20, 2021

@danielduhh
Copy link

@fejta the fix was rolled into the 1.16.1 go release

@fejta
Copy link
Contributor Author

fejta commented Sep 2, 2021

Thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants