Skip to content

Fix getCacheNames() concurrent access in NoOpCacheManager #35842

@jhoeller

Description

@jhoeller

NoOpCacheManager#getCacheNames() returns the underlying raw LinkedHashSet without any concurrent access protection. This should rather be aligned with ConcurrentMapCacheManager and CaffeineCacheManager which simply return ConcurrentHashMap#keySet() from there. The returned collection does not come with any ordering guarantees in the production implementations either, so the no-op implementation can easily align there.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions