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

feat(storage): add maxAttempts RetryOption #9215

Merged
merged 26 commits into from Jan 17, 2024

Conversation

Tulsishah
Copy link
Contributor

@Tulsishah Tulsishah commented Jan 4, 2024

Issue: By specifying a count limit for retries using max-retry-count, we can ensure that applications stop automatically retrying operations after that count. This allows you to proactively detect and investigate any persistent issues, rather than letting applications keep attempting to retry indefinitely. This can be particularly beneficial for troubleshooting purposes, as it helps pinpoint the root cause of the failure more quickly.

Adding to configure max retry count in RetryOption to the storage package.

Testing details

Manual - NA
Unit tests - Added
Integration tests - NA

@Tulsishah Tulsishah requested review from a team as code owners January 4, 2024 16:28
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Jan 4, 2024
storage/storage.go Outdated Show resolved Hide resolved
@codyoss codyoss changed the title Adding max retry count in RetryOption to the storage package feat(storage): add max retry count RetryOption Jan 4, 2024
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Jan 5, 2024
tritone added a commit to tritone/google-cloud-go that referenced this pull request Jan 5, 2024
This seems to have been missed in an earlier update and
now presubmits are failing on googleapis#9215
storage/storage.go Outdated Show resolved Hide resolved
storage/storage.go Outdated Show resolved Hide resolved
storage/invoke_test.go Outdated Show resolved Hide resolved
storage/invoke_test.go Outdated Show resolved Hide resolved
storage/invoke.go Outdated Show resolved Hide resolved
storage/invoke_test.go Show resolved Hide resolved
@tritone tritone added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 10, 2024
@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Jan 11, 2024
@Tulsishah Tulsishah changed the title feat(storage): add max retry count RetryOption feat(storage): add maxAttempts RetryOption Jan 11, 2024
Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

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

With the pointer implementation for the field in retryConfig, it should be unnecessary to do any manipulation of the Policy logic. Otherwise looks good.

storage/invoke_test.go Outdated Show resolved Hide resolved
storage/storage.go Outdated Show resolved Hide resolved
storage/storage.go Outdated Show resolved Hide resolved
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: l Pull request size is large. labels Jan 15, 2024
Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

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

One more docs clarification, otherwise looks good -- feel free to fix & merge.

storage/storage.go Outdated Show resolved Hide resolved
@tritone tritone added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 17, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 17, 2024
@tritone tritone added kokoro:force-run Add this label to force Kokoro to re-run the tests. automerge Merge the pull request once unit tests and other checks pass. labels Jan 17, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 17, 2024
@tritone tritone merged commit e348cc5 into googleapis:main Jan 17, 2024
9 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants