Skip to content

Actor TryGetStateAsync()/ GetStateAsync()` is returning stale / previous state #8538

Open
dapr/dotnet-sdk
#1473
@olitomlinson

Description

@olitomlinson

Runtime 1.15.0-rc15
SDK 1.15.0-rc.04

Expected Behavior

Update : I think this is related to state operations that are performed within the context of a Reminder.

When a call is made to this.StateManager.TryGetStateAsync() then I expect the newest/current data to be retrieved.

Actual Behavior

When a call is made to this.StateManager.TryGetStateAsync() then it is retrieving a cached/previous/stale version of the state.

Image

However, if I use the Actor HTTP API to retrieve the same state key, I can see the new/current state returned as expected

Image

If I then kill the dapr/app process, and restart it, the Actor will now log out the correct state

Image

Steps to Reproduce the Problem

Release Note

RELEASE NOTE:

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions