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

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

    XMLWordPrintable

Details

    • 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.

    Description

      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:

      Attachments

        Activity

          People

            Unassigned Unassigned
            mark.k_jira Mark K (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: