Ryan Gustafson created ISPN-7187:
------------------------------------
Summary: Cluster configured CacheManager.removeCache on LOCAL cache results
in NPE
Key: ISPN-7187
URL:
https://issues.jboss.org/browse/ISPN-7187
Project: Infinispan
Issue Type: Bug
Affects Versions: 8.2.4.Final
Reporter: Ryan Gustafson
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.2.3#72005)