Hello @Kevin_Meng
I guess there are some edge cases in which the SDK does not compare the activity name on replay.
Can you try the following?
- activityA
- sleep
- activityB
when the workflow reaches sleep, stop the worker and swap activityA and activityB, and start the worker again
- activityB
- sleep
- activityA
When the timer fires you should get a non-deterministic error.
Let me know how it goes.
Antonio