-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
8.2.4.Final
-
None
-
None
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.