Skip to content

Potential double invocation of getMissingCache in AbstractCacheManager [SPR-13492] #18070

@spring-projects-issues

Description

@spring-projects-issues

Todd Lindner opened SPR-13492 and commented

AbstractCacheManager.getCache(String name) creates caches lazily on access. If the same cache is requested in two different threads it is possible for getMissingCache(name) to be invoked twice.

Suggestion is to add a double-lock mechanism when lookupCache(name) returns null.


Affects: 4.1.7

Issue Links:

Referenced from: commits 75ea6f5

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions