Skip to content

Executing query methods on repositories is not thread-safe [DATAKV-115] #93

Closed
@spring-projects-issues

Description

@spring-projects-issues

Shu Yu opened DATAKV-115 and commented

I am using Spring data key value for a web application. Calls to a repository's findByXXX fail randomly, causing an exception.

I have attached the test case that can reproduce the problem.

I think that KeyValuePartTreeQuery is reusing a SpelExpression object, causing failing in SpelQueryEngine.filterMatchingRange() because the expression evaluation context in one thread can be changed by another thread


Affects: 1.0 GA (Gosling)

Attachments:

Referenced from: pull request #16

Metadata

Metadata

Labels

in: mapMap repositories/Map adapterin: repositoryRepositories abstractiontype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions