-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Durable Entities - State cleared / lost by framework #2744
Comments
Any updates or input from MS team? I belive there are more ppl affected after migration to .net8 and isolated worker... |
@sebastianburckhardt is this something you're aware of? |
Can confirm to have seen the same issue - entities will seemingly very nondeterministically lose state and reset to C# default. Fairly critical |
Looks like a fix has been merged to main for DurableTask.Core |
We have this same issue as well after migrating to isolated worker. |
for others tracking this issue, the latest 'fix' has caused larger regressions. MS Support have indicated this feedback has been put back to the product group and are looking for a fix next release. I would highly avoid https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.DurableTask/1.1.3 this version as we had a complete failure (hangs, does not process at all with critical internal failure) of Durable Entities in this version. |
Hi, @kweebtronic . Sorry for the trouble and inconvenience. The issue is caused by the inappropriate error handling. And I created a custom ADO feed to help mitigate the issue right now. If you are interested, the ADO feed is here. To use this, you need to first connect with feed, detailed instructions can be found here : first adding package source And official release might take several days, but we will make the fix as official release as soon as possible and keep you updated. |
Hi, @kweebtronic the package with the hotfixes has been released. Please use the package v1.1.4 instead to mitigate the issue. Nuget package link: https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.DurableTask/1.1.4 |
Fantastic work @nytian! This one looks like a winner. Thanks for your help 👍 |
Description
My dotnet-isolated durable entities are randomly losing state - the entity state class being reset to the default constructor values.
Background
I use durable entities within my application, to independently track high-level and detailed summary state of a suite of durable functions. These have been reliable since durable entities was first introduced.
I have now attempted the major upgrade to dotnet-8 and isolated functions, after waiting for durable entities to reach parity.
I use a class-based entity that implements
TaskEntity<TState>
, as this was the closest approximation to the previously-recommended pattern for strongly-typed proxies, not currently implemented under dotnet-isolatedExpected behavior
Durable entity retains its state until deleted
Actual behavior
State is reset back to the 'Initialiser' / class default constructor (retains EntityID)
Relevant source code snippets
Repro repo - https://github.com/kweebtronic/durable-entity-state-loss
Failure state occurs most times when run on local machine
Known workarounds
Can not recover from a cleared entity. This is a critical failure
App Details
Screenshots
N/A
If deployed to Azure
Can be replicated independently of Azure, this appears to be a logic bug.
The text was updated successfully, but these errors were encountered: