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

Akka.Persistence.Sql.Common: harden SqlJournal and SqlSnapshotStore against initialization failures #7325

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

Aaronontheweb
Copy link
Member

@Aaronontheweb Aaronontheweb commented Aug 23, 2024

Changes

I noticed this issue with Akka.Persistence.Sql and will be sending a pull request for that as well, but TL;DR; we had some DNS issues that prevented Akka.Persistence from being able to contact SQL Server initially - this was caused by Kubernetes being slow to resolve a DNS route. The current design basically just kills Akka.Persistence and disallows it from restarting, requiring a restart of the entire process. There's no good reason for this - we can just restart the journal / snapshot store actors instead and give the process a chance of succeeding without a reboot.

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

@Aaronontheweb Aaronontheweb added the akka-persistence-sql-common Akka.Persistence.Sql.Common label Aug 23, 2024
@Aaronontheweb Aaronontheweb added this to the 1.5.28 milestone Aug 23, 2024
@Aaronontheweb
Copy link
Member Author

The changes on this PR are pretty self-explanatory

Copy link
Contributor

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Arkatufus Arkatufus enabled auto-merge (squash) August 23, 2024 17:05
@Arkatufus Arkatufus merged commit 2502ea9 into akkadotnet:dev Aug 23, 2024
12 checks passed
@Aaronontheweb Aaronontheweb deleted the sql-init-hardening branch August 23, 2024 17:26
Arkatufus pushed a commit to akkadotnet/Akka.Persistence.Sql that referenced this pull request Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
akka-persistence-sql-common Akka.Persistence.Sql.Common
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants