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

Cache mode defined in default cache is not propagated to named cache

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

XMLWordPrintable

    • Hide

      <cache-container default-cache="default-dist" statistics="true" shutdown-hook="DEFAULT">
      <jmx domain="org.infinispan"/>
      <transport stack="tcp"/>

      <!-- Default cache, configured for most caches we need. -->
      <distributed-cache name="default-dist"
      mode="ASYNC"
      owners="2"
      segments="120"
      deadlock-detection-spin="3000"
      unreliable-return-values="true"
      statistics="true"/>

      <distributed-cache name="myNamedCache"/>
      </cache-container>

      The "myNamedCache" will be SYNC, even though the default cache is ASYNC.

      Show
      <cache-container default-cache="default-dist" statistics="true" shutdown-hook="DEFAULT"> <jmx domain="org.infinispan"/> <transport stack="tcp"/> <!-- Default cache, configured for most caches we need. --> <distributed-cache name="default-dist" mode="ASYNC" owners="2" segments="120" deadlock-detection-spin="3000" unreliable-return-values="true" statistics="true"/> <distributed-cache name="myNamedCache"/> </cache-container> The "myNamedCache" will be SYNC, even though the default cache is ASYNC.

      The cache mode (SYNC/ASYNC) is not propagated from the default-cache configuration to the named cache and defaults to SYNC, even when default-cache is set to ASYNC.

      Example Config:

              Unassigned Unassigned
              mark.k_jira Mark K (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: