jcasbin icon indicating copy to clipboard operation
jcasbin copied to clipboard

ConcurrentModificationException

Open rajp33 opened this issue 1 year ago • 2 comments

I believe a fix was put out a while ago for ConcurrentModificationExceptions being thrown. We still see some being thrown here and there. Don't have much to go off of besides a stacktrace though. Not able to consistently reproduce it

Screenshot 2024-06-15 at 11 38 22 PM

rajp33 avatar Jun 16 '24 03:06 rajp33

@tangyang9464 @imp2002

casbin-bot avatar Jun 16 '24 03:06 casbin-bot

Default enforce is non-thread-safe, you can switch to SyncedEnforcer, or you add a loading request to the single thread to avoid the concurrent issue.

nodece avatar Jun 29 '24 15:06 nodece