Open Enlatic opened 10 months ago
It looks like it is rather due to changing the storage to MSSQL than .NET migration. I faced the same issue https://github.com/microsoft/durabletask-dotnet/issues/246, and it seems that MSSQL storage might not support durable entities yet.
Durable Entities should be supported on the MSSQL backend. There are tests for the feature here.
However, our tests only target the in-proc implementation of entities. It's possible that there's a problem when using Durable Entities on MSSQL with the .NET Isolated worker, which has a different internal implementation. Will need to try and set up a local repro to see what's going on.
Durable Entities should be supported on the MSSQL backend. There are tests for the feature here.
However, our tests only target the in-proc implementation of entities. It's possible that there's a problem when using Durable Entities on MSSQL with the .NET Isolated worker, which has a different internal implementation. Will need to try and set up a local repro to see what's going on.
Thanks for confirming it should work. I provided a minimal repro example in the linked issue here https://github.com/microsoft/durabletask-dotnet/issues/246. Let me know if you need any additional details.
Thanks, so based on the issue you linked to, it looks like new feature work is required to support entities in the .NET Isolated worker. I was able to reproduce the issue using the minimal repro you provided (thanks!) so I can use that as a starting point for ensuring that .NET Isolated entities work correctly.
The following PR in DTFx core should replace the null-ref exception with a friendlier exception: https://github.com/Azure/durabletask/pull/1047.
Hi.
I have slight problem. Dont know if it a configuration issue on my side or something else.
Currently migrating our software from ..NET6 -> .NET8 and from InProc to Isolated. All good works as intended. The Null Reference Exception shows its self when I switch from AzureStorage to SQL Server.
A bit of code to exemplify the issue.
var result is a POCO. Running this code, I get the NullReferenceException on SignalEntify.
My config is: Microsoft.Azure.Functions.Worker - 1.20.1 Microsoft.Azure.Functions.Worker.Extensions.DurableTask - 1.1.0 Microsoft.Azure.Functions.Worker.Extensions.DurableTask.SqlServer - 1.2.2 Microsoft.Azure.Functions.Worker.Sdk - 1.16.4
host.json :)
After a bit of debugging. The exception originates
OrchestrationEntityContext
class on DurableTask.CoreThe
this.innerContext.EntityParameters
is not populated and is NULL.Is this intentionally? If yes, how do I fix it...
//Daniel