Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-7772

Configuring L1 results in invalid configuration for 'routing' and 'client-mapping' caches

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 11.0.0.Alpha1
    • 10.1.0.Final
    • Clustering
    • None

      While trying to verify a different issue, I configured a <distributed-cache> with l1-lifespan=300000 and added a Clusterbench deployment. The EAP start failed with:

      ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service org.wildfly.clustering.infinispan.cache-configuration.web.routing: org.jboss.msc.service.StartException in service org.wildfly.clustering.infinispan.cache-configuration.web.routing: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1919)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000350: Enabling the L1 cache is only supported when using DISTRIBUTED as a cache mode.  Your cache mode is set to REPLICATED
      	at org.infinispan.configuration.cache.L1ConfigurationBuilder.validate(L1ConfigurationBuilder.java:97)
      	at org.infinispan.configuration.cache.ClusteringConfigurationBuilder.validate(ClusteringConfigurationBuilder.java:108)
      	at org.infinispan.configuration.cache.ConfigurationBuilder.validate(ConfigurationBuilder.java:203)
      	at org.infinispan.configuration.cache.ConfigurationBuilder.build(ConfigurationBuilder.java:246)
      	at org.infinispan.configuration.cache.ConfigurationBuilder.build(ConfigurationBuilder.java:236)
      	at org.wildfly.clustering.infinispan.spi.service.ConfigurationBuilder.start(ConfigurationBuilder.java:88)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1963)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1896)
      	... 3 more
      

      The full config is here:
      http://pastebin.test.redhat.com/437800

      The cache has owners=1, but that does not matter, the exception is thrown with the default owners=2 as well.

      And the full server log is here:
      http://pastebin.test.redhat.com/437799

              rhn-engineering-rhusar Radoslav Husar
              rjanik@redhat.com Richard Janik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: