Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1570

Can't configure async caches with new config builder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 5.1.0.CR1
    • 5.1.0.BETA5
    • Configuration
    • 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)

            pmuiratbleepbleep Pete Muir (Inactive)
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: