[infinispan-issues] [JBoss JIRA] (ISPN-7187) Cluster configured CacheManager.removeCache on LOCAL cache results in NPE
Dan Berindei (Jira)
issues at jboss.org
Fri Jan 24 11:36:38 EST 2020
[ https://issues.redhat.com/browse/ISPN-7187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Berindei resolved ISPN-7187.
--------------------------------
Resolution: Out of Date
{{EmbeddedCacheManager.removeCache()}} is deprecated, and no longer uses a {{RemoveCacheCommand}} anyway.
> Cluster configured CacheManager.removeCache on LOCAL cache results in NPE
> -------------------------------------------------------------------------
>
> Key: ISPN-7187
> URL: https://issues.redhat.com/browse/ISPN-7187
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 8.2.4.Final
> Reporter: Ryan Gustafson
> Priority: Major
> Attachments: RemoveCacheInfinispanCacheTest.java
>
>
> While integration testing a common application scoped CacheManager, I hit a problem with LOCAL caches.
> When using a CacheManager which has clustering support configured, attempts to call removeCache() on a LOCAL cache results in a NPE. INVALIDATION_ASYNC caches have no problem though.
> At a minimum I would expect the removal of the cache from the calling CacheManager. It is unclear whether a NON-clustered CacheMode Cache would be removed in all the CacheManagers in the cluster. I would presume not, but I cannot test the behavior to find out. A literal reading of the CacheManager.removeCache(String) method JavaDoc however would expect it to wipe out all LOCAL caches with the same name in the cluster. The JavaDoc could be improved to clarify the behavior for non-clustered CacheModes.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the infinispan-issues
mailing list