FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: update DefaultRetryContext to trap and forward RejectedExceptionException to onFailure by BenWhitehead · Pull Request #3327 · googleapis/java-storage · GitHub

fix: update DefaultRetryContext to trap and forward RejectedExceptionException to onFailure - #3327

Merged
BenWhitehead merged 1 commit into
mainfrom
fix/retry-context/catch-ree
Oct 6, 2025
Merged

fix: update DefaultRetryContext to trap and forward RejectedExceptionException to onFailure#3327
BenWhitehead merged 1 commit into
mainfrom
fix/retry-context/catch-ree

Conversation

Copy link
Copy Markdown
Collaborator

If the executor service provided to the DefaultRetryContext is shutdown and an onSuccess attempts to be scheduled a RejectedExceptionException will be thrown.

Now, we catch and add it as a suppressed exception provided to recordError and immediately call onFailure, as we are no longer able to proceed with scheduling the retry.

…Exception to onFailure

If the executor service provided to the DefaultRetryContext is shutdown and an onSuccess attempts to be scheduled a RejectedExceptionException will be thrown.

Now, we catch and add it as a suppressed exception provided to recordError and immediately call onFailure, as we are no longer able to proceed with scheduling the retry.
BenWhitehead requested a review from a team October 3, 2025 18:03
product-auto-label Bot added size: m Pull request size is medium. api: storage Issues related to the googleapis/java-storage API. labels Oct 3, 2025
BenWhitehead merged commit 1be31bd into main Oct 6, 2025
25 checks passed
BenWhitehead deleted the fix/retry-context/catch-ree branch October 6, 2025 15:48

joe10832 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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 googleapis/java-storage API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL