sdk-java icon indicating copy to clipboard operation
sdk-java copied to clipboard

Workflow Task Exception eats up the exception sent by code

Open coderexpert123 opened this issue 3 years ago • 2 comments

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

  • Version: 1.16
  • Platform: Java SDK

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

coderexpert123 avatar Mar 31 '23 18:03 coderexpert123

any update on this?

coderexpert123 avatar Apr 18 '23 06:04 coderexpert123

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.

Spikhalskiy avatar Apr 18 '23 23:04 Spikhalskiy