Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
SqlSnapshotStore with autoinitialization stops if DB is temporrarily inaccessible #3870
Even after the fix of akkadotnet/Akka.Persistence.SqlServer#104 we still encountered an issue, that persistent actors could not start after the planned DB maintenance end. The only solution for us was to restart actor systems in whole cluster via pbm.
I have visually debugged the SqlServerSnapshotStore code and found two issues there, which probably caused the actor to stop:
If the DB becomes unavailable and saving snapshot fails so many times that circuit breaker opens, this line of code will immediately throw even without awaiting the task. This causes the actor to restart. Issue 2 happens afterwards
Now the whole actor system is screwed, since all new persistent actors can not start.
@ondrejpialek @balcko so the issue with the
I can work on the back-off issue with
We turned off
We did not encounter these issues since turning that off, but seeing the