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
Thanks for the issue! Can you please provide a concrete example? in an entity no parallel execution should happen calling append so the append is supposed to run in sequence
It looks like this part:
https://github.com/thehonesttech/zio-entity/blob/71dccddd986280c70ef265f9fbe01a1850b1a08e/core/src/main/scala/zio/entity/core/KeyedAlgebraCombinators.scala#L32-L45
cause issues when events are appended in a concurrent way.
Consider two threads/fibers: T1, T2
T1 and T2 read offset (say offset = 2)
after that offset is used to insert data into store (postgres):
T1 and T2 tries to insert with offset = 2 and one ends with exception like this:
The text was updated successfully, but these errors were encountered: