You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you has a primivite type as peristent state (IPersistentState<bool>) and write state, then clear stete. ReadState will throw exception:
Exc level 0: System.NullReferenceException: Object reference not set to an instance of an object.
at Orleans.Storage.AdoNetGrainStorage.ReadStateAsync[T](String grainType, GrainId grainReference, IGrainState`1 grainState) in /_/src/AdoNet/Orleans.Persistence.AdoNet/Storage/Provider/AdoNetGrainStorage.cs:line 275
at Orleans.Core.StateStorageBridge`1.ReadStateAsync() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 85
Activate a grain with a unique ID and a IPersistentState
call IPersistentState.WriteStateAsync()
call IPersistentState.ClearStateAsync()
call IPersistentState.ReadStateAsync() or
wait for grain deactivation
activate grain with same unique ID
This is common to happend when a ClearState is called and the grain gets deactivated. When a grain i activitate again this error will happend due to a call to ReadState on grain being activated.
Expected Behavior:
Shoud be able to use ReadState after ClearState (as it is in grain activation),
or make it realy clear that primivite types as persistent state is not supported with ADOnet storage provider.
The text was updated successfully, but these errors were encountered:
If you has a primivite type as peristent state
(IPersistentState<bool>)
and write state, then clear stete. ReadState will throw exception:Seams to be relatet to #7780 and #6580
Steps to Repro:
This is common to happend when a ClearState is called and the grain gets deactivated. When a grain i activitate again this error will happend due to a call to ReadState on grain being activated.
Expected Behavior:
Shoud be able to use ReadState after ClearState (as it is in grain activation),
or make it realy clear that primivite types as persistent state is not supported with ADOnet storage provider.
The text was updated successfully, but these errors were encountered: