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

fix: catch exceptions in synced enforcer thread #272

Merged
merged 1 commit into from
Oct 20, 2022

Conversation

stuartbeattie84
Copy link
Contributor

At present if an exception occurs in the auto loader thread it kills the thread with no way of restarting it. This means that even a recoverable error will kill the thread permanently - we've seen this on our own app were we temporarily lose connectivity with the DB. Once connectivity is restored the auto loader is broken because the thread has died, forcing us to restart our app.

@casbin-bot
Copy link
Member

@Nekotoxin please review

@casbin-bot casbin-bot requested a review from Nekotoxin October 20, 2022 08:15
@hsluoyz hsluoyz changed the title Catch exceptions in synced enforcer thread fix: catch exceptions in synced enforcer thread Oct 20, 2022
@hsluoyz hsluoyz merged commit ff35627 into casbin:master Oct 20, 2022
github-actions bot pushed a commit that referenced this pull request Oct 20, 2022
## [1.17.2](v1.17.1...v1.17.2) (2022-10-20)

### Bug Fixes

* catch exceptions in synced enforcer thread ([#272](#272)) ([ff35627](ff35627))
@github-actions
Copy link

🎉 This PR is included in version 1.17.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants