[infinispan-issues] [JBoss JIRA] (ISPN-11367) getCache(name) should never use the default cache's configuration
Dan Berindei (Jira)
issues at jboss.org
Wed Mar 11 09:36:41 EDT 2020
[ https://issues.redhat.com/browse/ISPN-11367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Berindei updated ISPN-11367:
--------------------------------
Git Pull Request: https://github.com/infinispan/infinispan/pull/7974, https://github.com/infinispan/infinispan/pull/8034 (was: https://github.com/infinispan/infinispan/pull/7974, https://github.com/infinispan/infinispan/pull/8031)
> 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: 10.1.4.Final, 11.0.0.Dev03
>
>
> {{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