sdk-java
sdk-java copied to clipboard
Subsequent MutableSideEffect calls inside one Workflow Task may explode with non-determinism on replay
Actual Behavior
Consider a workflow that has 3 calls to the same ID back to back ... encodedValue1 := workflow.MutableSideEffect(ctx, "id", ...) encodedValue2 := workflow.MutableSideEffect(ctx, "id", ...) encodedValue3 := workflow.MutableSideEffect(ctx, "id", ...) ... And say encodedValue1==encodedValue2 and encodedValue3 are different on the original run. This makes 2 markers will be in history. On replay the marker created by the third mutable side effect call will be applied to a second call instead causing a non-deterministic replay.
Context
GoSDK: https://github.com/temporalio/sdk-go/issues/1014