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 — fix: fix conditional retry handling of camelCase query params by andrewsg · Pull Request #340 · googleapis/python-storage

This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Conversation

@andrewsg

@andrewsg andrewsg commented Dec 10, 2020

Copy link
Copy Markdown
Contributor

A customer reported difficulty with if_metageneration_match conditional retries. It turned out to be confusion in the retry code over snake case vs. camel case query params; this will resolve that issue.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@andrewsg
fix: fix conditional retry handling of camelCase query params
32e266b
@andrewsg
andrewsg requested a review from a team December 10, 2020 22:12
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Dec 10, 2020
@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/python-storage API. label Dec 10, 2020
frankyn
frankyn approved these changes Dec 10, 2020
View reviewed changes
@andrewsg
andrewsg merged commit 4ff6141 into master Dec 11, 2020
@andrewsg
andrewsg deleted the retry-fix branch December 11, 2020 00:18
tritone
tritone reviewed Dec 11, 2020
View reviewed changes

@tritone tritone left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Belated comment on this-- does this seem to indicate that we're missing an integration test case?

Also @frankyn are these parameter keys case-sensitive?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@andrewsg

andrewsg commented Dec 11, 2020

Copy link
Copy Markdown
Contributor Author

@tritone Yes, I thought the same thing. We discussed integration coverage for this area in the initial commit, but found that there was really no good way to test the retry logic without mocking server responses in our systems tests. Rather than do that, which would be a change in policy on mocks in system tests, we decided to wait for automated conformance testing using the test bench which is supposedly coming in the future.

I'm open to revisiting that decision; this bug was nasty to track down and would have been easy with good integration tests here. What do you think?

If I recall correctly (I haven't tested this on GCS, this is my experience from other libraries) the API is flexible on how it accepts parameters, and both camelCase and snake_case are accepted, hence my confusion here. I don't know whether case is enforced on camel case; I'd assume it is not.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@NoahDragon NoahDragon mentioned this pull request Feb 24, 2021
feat: retry API calls with exponential backoff #287
Merged
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
@andrewsg @cojenco
fix: fix conditional retry handling of camelCase query params (google…
43a7699
…apis#340)
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
@andrewsg @cojenco
fix: fix conditional retry handling of camelCase query params (google…
93399d0
…apis#340)
@release-please release-please Bot mentioned this pull request Jan 12, 2022
chore(main): release 3.0.0 #688
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@tritone tritone tritone left review comments
@frankyn frankyn frankyn approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: storage Issues related to the googleapis/python-storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@andrewsg @frankyn @tritone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.