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

插件有线程安全问题 #129

Open
flipped0119 opened this issue Aug 24, 2023 · 2 comments
Open

插件有线程安全问题 #129

flipped0119 opened this issue Aug 24, 2023 · 2 comments

Comments

@flipped0119
Copy link

flipped0119 commented Aug 24, 2023

启用插件,在openSession()的时候,有可能触发
Error opening session. Cause: java.util.ConcurrentModificationException### Error opening session. Cause: java.util.ConcurrentModificationException

Cause: java.util.ConcurrentModificationException

at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
at org.apache.ibatis.session.defaults.DefaultSqlSessionFactory.openSessionFromDataSource(DefaultSqlSessionFactory.java:100)
at org.apache.ibatis.session.defaults.DefaultSqlSessionFactory.openSession(DefaultSqlSessionFactory.java:47)

@flipped0119
Copy link
Author

初步定位到是org.apache.ibatis.plugin.InterceptorChain.interceptors这个List中一边添加LogInterceptor一边openSession导致的

@Link-Kou
Copy link
Owner

有具体的Debug吗?我好定位

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

No branches or pull requests

2 participants