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

Subsequent MutableSideEffect calls inside one Workflow Task may explode with non-determinism on replay

Open Spikhalskiy opened this issue 3 years ago • 0 comments

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

Spikhalskiy avatar Feb 22 '23 18:02 Spikhalskiy