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

Cannot enable infinispan batching

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 10.0.0.Final
    • Clustering
    • None
    • Hide

      Test project
      Some debug information about cache instance is printed, with transaction mode BATCH (install.cli):

      Cache Class:class org.infinispan.cache.impl.CacheImpl
      Batching: false
      Max entries: 43210
      Batch Container:org.infinispan.batch.BatchContainer@54cad62f
      

      With transaction mode NONE (install_alt.cli):

      Cache Class:class org.infinispan.cache.impl.SimpleCacheImpl
      Batching: false
      Max entries: 43210
      
      Show
      Test project Some debug information about cache instance is printed, with transaction mode BATCH (install.cli): Cache Class:class org.infinispan.cache.impl.CacheImpl Batching: false Max entries: 43210 Batch Container:org.infinispan.batch.BatchContainer@54cad62f With transaction mode NONE (install_alt.cli): Cache Class:class org.infinispan.cache.impl.SimpleCacheImpl Batching: false Max entries: 43210

      Creating a TreeCache from a cache configured in standalone.xml fails with error:"invocationBatching is not enabled", whereas cache is configured with transaction mode BATCH. I'm not sure this configuration is right, documentation seems outdated.

      Cache configuration is:

      <cache-container name="testContainer" jndi-name="java:jboss/infinispan/container/testContainer">
        <local-cache name="testCache">
          <transaction mode="BATCH"/>
          <eviction strategy="LRU" max-entries="43210"/>
        </local-cache>
      </cache-container>
      

      Tree cache creation code:

        @Resource(lookup = "java:jboss/infinispan/cache/testContainer/testCache")
        private Cache<String, String> testBaseCache;
      
        @PostConstruct
        public void onStartup() {
          debugInfo();
          new TreeCacheFactory().createTreeCache(this.testBaseCache);
        }
      

      Error:

      ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 64) MSC000001: Failed to start service jboss.deployment.subunit."test-wfy10-cache-tree.ear-0.0.0-SNAPSHOT.ear"."test-wfy10-cache-tree.jar.jar".component.TreeCacheBean.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."test-wfy10-cache-tree.ear-0.0.0-SNAPSHOT.ear"."test-wfy10-cache-tree.jar.jar".component.TreeCacheBean.START: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
      

            pferraro@redhat.com Paul Ferraro
            julien.guillot Julien Guillot (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: