]
Dan Berindei updated ISPN-11367:
--------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
getCache(name) should never use the default cache's
configuration
-----------------------------------------------------------------
Key: ISPN-11367
URL:
https://issues.redhat.com/browse/ISPN-11367
Project: Infinispan
Issue Type: Enhancement
Components: Configuration, Core
Affects Versions: 10.1.2.Final, 11.0.0.Alpha1
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Fix For: 11.0.0.Alpha2
{{DefaultCacheManager.getCache(name)}} will try to create the cache if it doesn't
exist, and if a matching configuration doesn't exist either it uses the default
cache's configuration.
Since 9.0 named cache configurations no longer inherit from the default cache
configuration, so using the default cache's configuration as a default configuration
is surprising.
{{DefaultCacheManager.getCache(name)}} should only create the cache if a matching
configuration exists, otherwise it should throw an exception.