Skip to content
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

exceptions in Orleans storage - "Orleans.Storage.MemoryGrainStorage: Error: Error from storage provider MemoryGrainStorage.state during WriteStateAsync for grain subscriptions/0(null)InconsistentStateException: e-Tag mismatch in Memory Storage." #4490

Closed
rysweet opened this issue Dec 3, 2024 · 0 comments · Fixed by #4491
Assignees
Labels
dotnet issues related to AutoGen.Net needs-triage
Milestone

Comments

@rysweet
Copy link
Collaborator

rysweet commented Dec 3, 2024

What happened?

Orleans.Storage.MemoryGrainStorage: Error: Error from storage provider MemoryGrainStorage.state during WriteStateAsync for grain subscriptions/0(null)InconsistentStateException: e-Tag mismatch in Memory Storage. Stored = eeb39c4a099140b5b884cdc0753dc7ad Received = 4cb7ca1fcba24f9a857d2dbe621e895d Expected Etag=eeb39c4a099140b5b884cdc0753dc7ad Received Etag=4cb7ca1fcba24f9a857d2dbe621e895d Orleans.Storage.Internal.MemoryStorageEtagMismatchException: Exception of type 'Orleans.Storage.Internal.MemoryStorageEtagMismatchException' was thrown. at Orleans.Storage.MemoryStorageGrain.ValidateEtag(String currentETag, String receivedEtag, String grainStoreKey, String operation) in //src/Orleans.Persistence.Memory/Storage/MemoryStorageGrain.cs:line 91 at Orleans.Storage.MemoryStorageGrain.WriteStateAsync[T](String grainStoreKey, IGrainState1 grainState) in /_/src/Orleans.Persistence.Memory/Storage/MemoryStorageGrain.cs:line 35 at OrleansCodeGen.Orleans.Storage.Invokable_IMemoryStorageGrain_GrainReference_7CC6CA25_11.InvokeInner() in //src/Orleans.Core/Orleans.CodeGenerator/Orleans.CodeGenerator.OrleansSerializationSourceGenerator/Orleans.Core.orleans.g.cs:line 11491 at Orleans.Runtime.TaskRequest1.Invoke() in /_/src/Orleans.Core.Abstractions/Runtime/GrainReference.cs:line 703 --- End of stack trace from previous location --- at Orleans.Runtime.GrainMethodInvoker.Invoke() in /_/src/Orleans.Core/Core/GrainMethodInvoker.cs:line 132 at OrleansDashboard.Implementation.GrainProfilerFilter.Invoke(IIncomingGrainCallContext context) at Orleans.Runtime.GrainMethodInvoker.Invoke() in /_/src/Orleans.Core/Core/GrainMethodInvoker.cs:line 94 at Orleans.Runtime.InsideRuntimeClient.Invoke(IGrainContext target, Message message) in /_/src/Orleans.Runtime/Core/InsideRuntimeClient.cs:line 267 at Orleans.Serialization.Invocation.ResponseCompletionSource1.GetResult(Int16 token) in //src/Orleans.Serialization/Invocation/ResponseCompletionSource.cs:line 230 at System.Threading.Tasks.ValueTask1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)--- End of stack trace from previous location --- at Orleans.Storage.MemoryGrainStorage.WriteStateAsync[T](String grainType, GrainId grainId, IGrainState1 grainState) in //src/Orleans.Persistence.Memory/Storage/MemoryStorage.cs:line 92

What did you expect to happen?

no exception

How can we reproduce it (as minimally and precisely as possible)?

when adding/removing subscription

AutoGen version

0.4

Which package was this bug in

Core

Model used

No response

Python version

No response

Operating system

No response

Any additional info you think would be helpful for fixing this bug

No response

@rysweet rysweet added the dotnet issues related to AutoGen.Net label Dec 3, 2024
@rysweet rysweet added this to the 0.4.0 milestone Dec 3, 2024
@rysweet rysweet self-assigned this Dec 3, 2024
@rysweet rysweet linked a pull request Dec 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet issues related to AutoGen.Net needs-triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant