File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -917,9 +917,13 @@ ProcessEvents:
917
917
}
918
918
}
919
919
if nonDeterministicErr == nil && w .err != nil {
920
- if panicErr , ok := w .err .(* workflowPanicError ); ok && panicErr .value != nil {
921
- if _ , isStateMachinePanic := panicErr .value .(stateMachineIllegalStatePanic ); isStateMachinePanic {
922
- nonDeterministicErr = panicErr
920
+ if isReplayTest {
921
+ // NOTE: we should check the following error regardless if it's in replay test or not
922
+ // but since we are not checking it previously, it may break existing customers workflow
923
+ if panicErr , ok := w .err .(* workflowPanicError ); ok && panicErr .value != nil {
924
+ if _ , isStateMachinePanic := panicErr .value .(stateMachineIllegalStatePanic ); isStateMachinePanic {
925
+ nonDeterministicErr = panicErr
926
+ }
923
927
}
924
928
}
925
929
}
You can’t perform that action at this time.
0 commit comments