Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-31790

(8.0.z) replicated-cache created by web-clustering Galleon layer does not include purge/passivation settings for the file-store

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 8.0.z.GA
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      The web-clustering Galleon layer in the eap-cloud-galleon-pack (tested with 1.1.0.Final-redhat-00001) used by the eap-8.0 channel adds the following replicated-cache to the standalone.xml file:

      <replicated-cache name="repl">
          <locking isolation="REPEATABLE_READ"/>
          <transaction mode="BATCH"/>
          <expiration interval="0"/>
          <file-store/>
      </replicated-cache>
      

      Unfortunately, due to WFLY-16672, it looks like the default values of the purge and passivation attributes of the file-store tag changed from true to false. This means that the above definition is effectively <file-store purge="false" passivation="false" />, which is not optimal in a clustered environment.

      The eap-cloud-galleon-pack should be updated to specify <file-store purge="true" passivation="true" />.

      Note: The actual definitions seem to be coming from the wildfly-cekit-modules/web-clustering which references os-infinispan-web-repl-cache.xml.

      Workaround

      It is possible to use the packaging-scripts feature of the eap-maven-plugin to run jboss-cli commands like the following which set the attributes to true:

      <packaging-scripts>
          <execution>
              <commands>
                  <command>/subsystem=infinispan/cache-container=web/replicated-cache=repl/store=file:write-attribute(name=purge,value=true)</command>
                  <command>/subsystem=infinispan/cache-container=web/replicated-cache=repl/store=file:write-attribute(name=passivation,value=true)</command>
              </commands>
          </execution>
      </packaging-scripts>
      

              mjusko@redhat.com Marek Jusko
              rhn-support-iwalker Ian Walker
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: