2 Replies Latest reply on Feb 23, 2016 3:14 AM by gaboros

    Modeshape delete binaries in cluster mode.

    gaboros

      When I start modeshape in cluster mode it deletes my binaries on every start. Clustering works fine with two nodes but after restart the binaries are gone. Seems like it create again everything instead of loading. What did I wrong?

       

      standalone-ha.xml

       

      <subsystem xmlns="urn:jboss:domain:modeshape:2.1">

        <repository name="sample" cache-name="sample" cache-config="modeshape/sample-ha-cache-config.xml">

        <cache-binary-storage data-cache-name="sample-binary-fs" metadata-cache-name="sample-binary-fs-meta"/>

        <text-extractors>

          <text-extractor name="tika-extractor" classname="org.modeshape.extractor.tika.TikaTextExtractor" module="org.modeshape.extractor.tika"/>

        </text-extractors>

        </repository>

      </subsystem>

       

      cache-config:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        xsi:schemaLocation="urn:infinispan:config:7.2 http://www.infinispan.org/schemas/infinispan-config-7.2.xsd"

        xmlns="urn:infinispan:config:7.2">

        <jgroups>

        <stack-file name="tcp" path="${jboss.server.config.dir}/modeshape/jgroups-config.xml" />

        </jgroups>

        <cache-container default-cache="sample" statistics="false">

        <jmx duplicate-domains="true" />

        <transport cluster="modeshape-cluster" stack="tcp" />

       

        <!-- Repo cache -->

        <invalidation-cache name="sample" mode="SYNC" statistics="false">

        <transaction mode="NON_XA" />

        <persistence passivation="false">

        <file-store shared="false" preload="false" purge="true" path="${jboss.server.data.dir}/modeshape/store/sample" />

        </persistence>

        </invalidation-cache>

       

        <!-- Binary data -->

        <invalidation-cache name="sample-binary-fs" mode="SYNC" statistics="false">

        <transaction mode="NON_XA" locking="PESSIMISTIC" />

        <persistence passivation="false">

        <file-store shared="false" preload="false" purge="true" path="${jboss.server.data.dir}/modeshape/binary-store/sample-binary" />

        </persistence>

        </invalidation-cache>

       

        <!-- Binary metadata -->

        <invalidation-cache name="sample-binary-fs-meta" mode="SYNC" statistics="false">

        <transaction mode="NON_XA" locking="PESSIMISTIC" />

        <persistence passivation="false">

        <file-store shared="false" preload="false" purge="true" path="${jboss.server.data.dir}/modeshape/binary-store/sample-binary-meta" />

        </persistence>

        </invalidation-cache>

        </cache-container>

      </infinispan>