-
Bug
-
Resolution: Done
-
Blocker
-
5.1.0.BETA5
-
None
The following test:
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); }
Fails with:
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)