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

Can't configure async caches with new config builder

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

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
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: