Skip to content

Sharding issue - sharded entity is duplicated #7285

Discussion options

You must be logged in to vote

And what database are you using for Akka.Persistence with these settings? Any? Because by-default with this HOCON it will use the in-memory database, which is 100% why you'd receive a duplicate in this case (that in-memory database is only meant to be used for testing - it's not replicated between nodes.)

To resolve this issue, set the ShardOptions.StateStorageMode = DData or add a real Akka.Persistence configuration to your application.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Aaronontheweb
Comment options

@Aaronontheweb
Comment options

@giovanni-ferrari
Comment options

@Aaronontheweb
Comment options

Answer selected by Aaronontheweb
@giovanni-ferrari
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants