-
Notifications
You must be signed in to change notification settings - Fork 155
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
Possible to Encounter ConcurrentModificationException in SessionFactoryImpl #1464
Comments
Hello. It actually looks like something is modifying the bookmarks given to the
|
Yes, you're right! I'm not sure why I thought it was the HashSet since the exception is clear that it's a HashMap.
|
Well, the main issue seems to be that the bookmarks given via the |
I think it would make sense for the |
I use the ReactiveNeo4jClient from spring-data-neo4j-7.1.2 to execute queries. Perhaps some code in that project is modifying the bookmarks. There is an |
Opened a suggested fix: spring-projects/spring-data-neo4j#2769 |
This should be fixed now. |
Unfortunately with version 5.11.0 I have the same problem, now in the I feel bad reporting this the day of the release, but I had trouble building the pre-release version for an adequate test.
|
@seabamirum, thanks for checking. 👍 The driver update was not meant to eliminate the problem, it was just a general improvement in the driver. You need to get the updated |
When running load tests with 40 threads using the Neo4j driver version 5.9.0, I encountered a ConcurrentModificationException in the toDistinctSet() method of SessionFactoryImpl.
Proposed Fix: on line 74 in the
toDistinctSet
method inSessionFactoryImpl
, replaceHashSet<>()
withCollections.synchronizedSet(new HashSet<>())
The text was updated successfully, but these errors were encountered: