BullOak / BullOak.Repositories.EventStore

The EventStore integration project for BullOak
MIT License
0 stars 8 forks source link

Retry on EventStore.Client.NotLeaderException #34

Open iblazhko opened 6 months ago

iblazhko commented 6 months ago

Occasionally, we see the EventStore.Client.NotLeaderException.

Currently the BullOak operation fails and events are not stored to the stream.

It appears that EventStore client does not implement retries on this exception internally: https://github.com/EventStore/EventStore-Client-Dotnet/issues/263#issuecomment-1716022881

Proposed solution is to implement retry directly in BullOak, because it will be closest to the source of error.

iblazhko commented 6 months ago

PR: https://github.com/BullOak/BullOak.Repositories.EventStore/pull/35