[infinispan-issues] [JBoss JIRA] (ISPN-1706) Cannot disable the L1 Cache in some special cases
Nicolas Filotto (JIRA)
jira-events at lists.jboss.org
Wed Jan 11 11:48:22 EST 2012
[ https://issues.jboss.org/browse/ISPN-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas Filotto updated ISPN-1706:
----------------------------------
Attachment: (was: ISPN-1706.patch)
> Cannot disable the L1 Cache in some special cases
> -------------------------------------------------
>
> Key: ISPN-1706
> URL: https://issues.jboss.org/browse/ISPN-1706
> Project: Infinispan
> Issue Type: Bug
> Components: Core API
> Affects Versions: 5.1.0.CR3
> Reporter: Nicolas Filotto
> Assignee: Pete Muir
> Priority: Critical
> Fix For: 5.1.0.FINAL
>
> Attachments: ISPN-1706.patch
>
>
> In some specific cases, if we want to define a configuration in which we disabled the L1 cache and the property onRehash, we can still face the following exception:
> {code}
> org.infinispan.config.ConfigurationException: Can only move entries to L1 on rehash when L1 is enabled
> at org.infinispan.config.ConfigurationValidatingVisitor.visitL1Type(ConfigurationValidatingVisitor.java:99)
> at org.infinispan.config.DelegatingConfigurationVisitor.visitL1Type(DelegatingConfigurationVisitor.java:183)
> at org.infinispan.config.Configuration$L1Type.accept(Configuration.java:3698)
> at org.infinispan.config.Configuration$ClusteringType.accept(Configuration.java:2462)
> at org.infinispan.config.Configuration.accept(Configuration.java:1459)
> at org.infinispan.manager.DefaultCacheManager.wireCache(DefaultCacheManager.java:655)
> at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:618)
> at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:514)
> {code}
> See below a TestCase that represents one way to face this issue:
> {code}
> public void testConfig()
> {
> GlobalConfigurationBuilder gcb = GlobalConfigurationBuilder.defaultClusteredBuilder();
> ConfigurationBuilder cb = new ConfigurationBuilder();
> DefaultCacheManager manager = new DefaultCacheManager(gcb.build(), cb.build());
> cb = new ConfigurationBuilder();
> cb.clustering().cacheMode(CacheMode.DIST_SYNC).l1().disable().disableOnRehash();
> manager.defineConfiguration("testConfigCache", cb.build());
> manager.getCache("testConfigCache");
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list