temporalio / sdk-java

Temporal Java SDK
https://temporal.io
Apache License 2.0
219 stars 146 forks source link

Workflow Task Exception eats up the exception sent by code #1736

Open hrishirc opened 1 year ago

hrishirc commented 1 year ago

Expected Behavior

After getVersion call, the same workflow task eats up a business logic exception

Actual Behavior

The exception should not be eaten up. Instead the business logic exception should come in the Temporal UI

Steps to Reproduce the Problem

  1. Version a piece of code
  2. Send an exception immediately after that line

Specifications

https://gist.github.com/hrishirc/68c6fcc23b7c943f858d91fe451f689a

hrishirc commented 1 year ago

any update on this?

Spikhalskiy commented 1 year ago

This issue needs a reproduction or more information about the specific code structure causing it. I wrote a test verifying the behavior of a simple getVersion + exception right after and verified that it passes against the current master and 1.16.0.

@hrishirc please provide more info on your specific conditions. Unit test demonstrating the behavior is the best.