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

Unwrap ExecutionException on sync update #1974

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

Quinn-With-Two-Ns
Copy link
Contributor

Unwrap ExecutionException on sync update. We shouldn't return the ExecutionException to caller since they aren't expecting an ExecutionException on a sync update.

closes #1973

@Quinn-With-Two-Ns Quinn-With-Two-Ns marked this pull request as ready for review January 20, 2024 06:22
@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner January 20, 2024 06:22
Comment on lines +56 to +57
assertThrows(
WorkflowUpdateException.class,
Copy link
Member

Choose a reason for hiding this comment

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

Can you verify the cause here is the serialized application failure? (or confirm a test elsewhere confirms the proper thrown exception type from update)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes we have lots of other tests that verify the exception type from an update

Copy link
Member

Choose a reason for hiding this comment

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

👍 I would have expected them to also confirm/deny WorkflowUpdateException was the properly thrown exception, but I am guessing they just validated the cause not the top-level type?

@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit 3c4be9d into temporalio:master Jan 22, 2024
6 checks passed
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.

WorkflowUpdateException incorrectly wrapped by ExecutionException in some edge case
2 participants