Uploaded image for project: 'GateIn Portal'
  1. GateIn Portal
  2. GTNPORTAL-3404

The path of JCr index cache is hard coded in configuration.properties

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.7.0.Final
    • Fix Version/s: 3.8.0.Beta01
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Sprint 95, Sprint 96

      Description

      The path 's configuration of the JCR index cache is always configured in cluster mode "/conf/jcr/infinispan/cluster/indexer-config.xml" whatever the profil mode ( local or cluster) .
      But in local mode we don't really need the transport configuration and the clustering configuration

      <infinispan
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="urn:infinispan:config:5.2 http://www.infinispan.org/schemas/infinispan-config-5.2.xsd"
            xmlns="urn:infinispan:config:5.2">
      
         <global>
            <evictionScheduledExecutor factory="org.infinispan.executors.DefaultScheduledExecutorFactory">
               <properties>
                  <property name="threadNamePrefix" value="EvictionThread"/>
               </properties>
            </evictionScheduledExecutor>
      
            <globalJmxStatistics jmxDomain="platform.insp.cache.indexer" enabled="true" allowDuplicateDomains="true"/>
      
            <transport transportClass="org.infinispan.remoting.transport.jgroups.JGroupsTransport" clusterName="${infinispan-cluster-name}" distributedSyncTimeout="20000">
               <properties>
                  <property name="configurationFile" value="${gatein.jcr.jgroups.config}"/>
               </properties>
            </transport>
         </global>
      
         <default>
            <clustering mode="replication">
               <stateTransfer timeout="20000" fetchInMemoryState="false" />
               <sync replTimeout="20000"/>
            </clustering>
      
            <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="20000" writeSkewCheck="false" concurrencyLevel="500" useLockStriping="false"/>
            <transaction transactionManagerLookupClass="org.exoplatform.services.transaction.infinispan.JBossStandaloneJTAManagerLookup" syncRollbackPhase="true" syncCommitPhase="true" transactionMode="TRANSACTIONAL"/>
            <jmxStatistics enabled="true"/>
            <eviction strategy="NONE"/>
                  <loaders passivation="false" shared="false" preload="false">
                    <loader class="${infinispan-cachestore-classname}" fetchPersistentState="false" ignoreModifications="false" purgeOnStartup="false">
                      <async enabled="false"/>
                    </loader>
                  </loaders>
         </default>
      </infinispan>
      

      So , The configuration of JCR Index cache must be one for local mode and one for Cluster mode ,
      the path must be

      gatein.jcr.index.cache.config=war:/conf/jcr/infinispan/${gatein.jcr.config.type}/indexer-config.xml
      

      instead of

      gatein.jcr.index.cache.config=war:/conf/jcr/infinispan/cluster/indexer-config.xml
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                nttuyen266 Tuyen Nguyen The
                Reporter:
                rtouzi Racha Touzi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h