Closed sebastianburckhardt closed 3 months ago
@cgillum / @jviau - requested for your review because there are some customers asking about this. There's a DF release starting next week, so it'd be great if this fix could go out with that.
Is there an orchestration that you used for testing this fix which we can borrow and include as part of an end-to-end test?
Yes. All the tests are in here: https://github.com/Azure/azure-functions-durable-extension/pull/2612
The specific test that would have detected this problem is called FaultyCriticalSection
.
As diagnosed in #2743, the current code in
OutOfProcMiddleware.CallOrchestratorAsync
does not correctly propagate the results of a failed orchestration to the backend.The problem is that when an orchestrator function fails, the OrchestratorExecutionResult that was constructed by the executor is ignored, and instead an alternate OrchestratorExecutionResult.ForFailure is constructed from the exception returned by the function result. This is a problem because
This PR fixes the problem by propagating the original
OrchestratorExecutionResult
that describes the failure (if there is one).release_notes.md