[infinispan-issues] [JBoss JIRA] (ISPN-11367) getCache(name) should never use the default cache's configuration

Dan Berindei (Jira) issues at jboss.org
Tue Feb 18 08:09:01 EST 2020


Dan Berindei created ISPN-11367:
-----------------------------------

             Summary: 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: 11.0.0.Alpha1, 10.1.2.Final
            Reporter: Dan Berindei
            Assignee: Dan Berindei
             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.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list