[infinispan-issues] [JBoss JIRA] (ISPN-1570) Can't configure async caches with new config builder
Manik Surtani (Updated) (JIRA)
jira-events at lists.jboss.org
Mon Dec 5 10:00:40 EST 2011
[ https://issues.jboss.org/browse/ISPN-1570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manik Surtani updated ISPN-1570:
--------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/696
> Can't configure async caches with new config builder
> ----------------------------------------------------
>
> Key: ISPN-1570
> URL: https://issues.jboss.org/browse/ISPN-1570
> Project: Infinispan
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 5.1.0.BETA5
> Reporter: Galder Zamarreño
> Assignee: Pete Muir
> Priority: Blocker
> Fix For: 5.1.0.CR1
>
>
> The following test:
> {code}public void testReplAsyncWithQueue() {
> Configuration configuration = new ConfigurationBuilder()
> .clustering().cacheMode(CacheMode.REPL_ASYNC)
> .async().useReplQueue(true).replQueueInterval(1222)
> .build();
> org.infinispan.config.Configuration legacy = new LegacyConfigurationAdaptor().adapt(configuration);
> }{code}
> Fails with:
> {code}java.lang.IllegalStateException: Cannot configure a async for an sync cache. Set the cache mode to async first.
> at org.infinispan.configuration.cache.ClusteringConfigurationBuilder.async(ClusteringConfigurationBuilder.java:32)
> at org.infinispan.configuration.ConfigurationUnitTest.testReplAsyncWithQueue(ConfigurationUnitTest.java:81){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