Thread-safetey issue in annotation detection in BasicPersistentEntity [DATACMNS-1210] #1649
Labels
in: mapping
Mapping and conversion infrastructure
in: repository
Repositories abstraction
type: bug
A general bug
Milestone
Philipp Röben opened DATACMNS-1210 and commented
I found the problem using spring-data-redis but it I think it could apply to all spring-data projects
I was not able to file a bug in spring-data-mapping because there was no assignee.
You can reproduce the issue easily:
MyPOJO is a normal POJO annotated with Redis/Spring Data annotations:
the Repository is quite simple:
When firing up the test, I get:
In Sourcecode you can see that in BasicPersistenceEntity:
... is just a simple map, no ConcurrentHashmap and no other means of making this part threadsafe.
When I do the Test in single Thread mode there is no problem.
Basically this means all the Spring Data Repositories are not threadsafe!
Affects: 2.0.1 (Kay SR1)
Issue Links:
Referenced from: pull request #259, and commits 309cdc5, 24c1b82, 8026f8a, 8185885
Backported to: 2.0.2 (Kay SR2)
The text was updated successfully, but these errors were encountered: