]
Manik Surtani updated ISPN-19:
------------------------------
Fix Version/s: 6.0.0.Final
(was: 5.0.0.BETA1)
(was: 5.0.0.Final)
different cache manager impl : LocalCacheManager and
ClusteredCacheManager
--------------------------------------------------------------------------
Key: ISPN-19
URL:
https://issues.jboss.org/browse/ISPN-19
Project: Infinispan
Issue Type: Feature Request
Components: Core API
Reporter: Mircea Markus
Assignee: Manik Surtani
Fix For: 6.0.0.Final
consider having two CacheManagers impl: LocalCacheaManager and ClusteredCacheManager.
This is in order to offer a more clear API to the user, who might want to use a specific
cache manager.
Currently, this is achieved through usage of
GlobalConfiguration.getClusterDefault()/getNonClusterDefault(), but this is not very clear
to the user.
Also, after trying to create an replicated cache on a cache manager build on an
"getNonClusterDefault" config, there will be an unclear error message:
""Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.horizon.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:129)
... 35 more
Caused by: java.lang.NullPointerException
at
org.horizon.statetransfer.StateTransferManagerImpl.start(StateTransferManagerImpl.java:116)
... 40 more
Error should be more specific, something like: "You're not allowed to deploy an
clustered cache on an local cache manager".
public void testCreateReplicatedCacheOnLocalCM() {
GlobalConfiguration globalConfiguration =
GlobalConfiguration.getNonClusteredDefault();
globalConfiguration.setAllowDuplicateDomains(true);
CacheManager dcm1 = new DefaultCacheManager(globalConfiguration);
CacheManager dcm2 = new DefaultCacheManager(globalConfiguration);
Configuration conf = new Configuration();
conf.setCacheMode(Configuration.CacheMode.REPL_SYNC);
dcm1.defineCache("replicated", conf);
dcm2.defineCache("replicated", conf);
dcm1.getCache("replicated");
dcm2.getCache("replicated");
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: