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

Preserve a previous exception in GrpcRetryer in case of DEADLINE_EXCEEDED #674

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

Spikhalskiy
Copy link
Contributor

Issue #666

What was changed

Now GrpcRetryer preserves a previous exception and throws it in the case of DEADLINE_EXCEEDED if DEADLINE_EXCEEDED is not the first exception in the chain.

Why?

DEADLINE_EXCEEDED should be treated basically the same way as a retry timeout. The user of GrpcRetryer is interested in what happened and was retried and what eventually lead us to the timeout, not in the timeout or DEADLINE_EXCEEDED itself.

Closes #666

How was this tested:
GrpcRetyer unit tests

Comment on lines 33 to 35
* not.
*
Copy link
Member

Choose a reason for hiding this comment

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

Probably worth mentioning here that in the face of DEADLINE_EXCEEDED errors, we will attempt to return original error

@Spikhalskiy Spikhalskiy merged commit 73d7fbd into temporalio:master Aug 26, 2021
vkoby pushed a commit to vkoby/sdk-java that referenced this pull request Aug 30, 2021
@Spikhalskiy Spikhalskiy deleted the issue-666 branch April 15, 2022 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GrpcRetryer could lose a real cause in case of DEADLINE_EXCEEDED
2 participants