Skip to content

[Journaling] Avoid increase version after recovery for DurableState#9628

Merged
ReubenBond merged 1 commit intodotnet:mainfrom
ledjon-behluli:fix-durable-state
Jul 29, 2025
Merged

[Journaling] Avoid increase version after recovery for DurableState#9628
ReubenBond merged 1 commit intodotnet:mainfrom
ledjon-behluli:fix-durable-state

Conversation

@ledjon-behluli
Copy link
Contributor

@ledjon-behluli ledjon-behluli commented Jul 28, 2025

The state _version is incorrectly incremented after the recovery phase. This causes the RecordExists property to erroneously report true, therefor preventing initial state setup/migration logic in OnActivateAsync. Either way, the version should be advanced only (i think) when a write occurs.

Microsoft Reviewers: Open in CodeFlow

@ReubenBond ReubenBond merged commit dd821c5 into dotnet:main Jul 29, 2025
54 of 55 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments