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: 修复并发请求API情况下的读写冲突问题 #1395

Merged
merged 1 commit into from Mar 29, 2023

Conversation

Albort-z
Copy link
Contributor

CachedEnforcer不支持多并发场景,当API并发请求时服务会报出:fatal error: concurrent map writes。
解决方法:使用SyncedCachedEnforcer替换CachedEnforcer。
具体原因见:casbin/casbin#1214

@piexlmax piexlmax merged commit 69aa64f into flipped-aurora:main Mar 29, 2023
8 checks passed
@SliverHorn
Copy link
Member

@Albort-z 哥们,casbin 2.66.0 有bug
image

@Albort-z
Copy link
Contributor Author

Albort-z commented Apr 3, 2023

ok, 看到casbin发v2.66.1来修复这个bug了。

@Albort-z
Copy link
Contributor Author

我这边可以重新提交个2.66.1版本的,我只测试和使用了这个版本,官方又有两个fixbug在2.66.2和2.66.3

@Albort-z
Copy link
Contributor Author

@piexlmax 我在新的pr提交了v2.68.0版本的,在我这边测试没发现问题

Stephen-Z pushed a commit to Stephen-Z/gin-vue-admin that referenced this pull request Jul 12, 2023
Stephen-Z pushed a commit to Stephen-Z/gin-vue-admin that referenced this pull request Jul 12, 2023
songzhibin97 pushed a commit that referenced this pull request Oct 11, 2023
Co-authored-by: 李展旗 <lizhanqi@inke.cn>
songzhibin97 pushed a commit that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants