Skip to content

Random Non-Deterministic exception #2347

Answered by TurakKatase
TurakKatase asked this question in Q&A
Discussion options

You must be logged in to vote

I found the root cause after accidently reproducing the issue. It was indeed a non deterministic error, but a stranger one than I suspect the authors of durable functions anticipated.

The problem occurs when durable functions is unable to deserialize the json response from an activity. The reason this happens and appeared to be random is that a dll needed to deserialize the response isn't loaded properly at the time of playback if the orchestration is the first to run in a new process. It's dynamically loaded earlier in the flow, making the entire thing technically non-deterministic. I'll need to take find a better way to ensure the needed dlls are all loaded in time for the orchestration.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@davidmrdavid
Comment options

@TurakKatase
Comment options

@davidmrdavid
Comment options

Answer selected by TurakKatase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants