[
https://issues.jboss.org/browse/GTNPORTAL-3404?focusedWorklogId=12430920&...
]
Trong Tran logged work on GTNPORTAL-3404:
-----------------------------------------
Author: Trong Tran
Created on: 17/Mar/14 7:18 AM
Start Date: 17/Mar/14 7:18 AM
Worklog Time Spent: 4 hours
Issue Time Tracking
-------------------
Remaining Estimate: 0 minutes (was: 4 hours)
Time Spent: 4 hours
Worklog Id: (was: 12430920)
The path of JCr index cache is hard coded in
configuration.properties
---------------------------------------------------------------------
Key: GTNPORTAL-3404
URL:
https://issues.jboss.org/browse/GTNPORTAL-3404
Project: GateIn Portal
Issue Type: Enhancement
Security Level: Public(Everyone can see)
Affects Versions: 3.7.0.Final
Reporter: Racha Touzi
Assignee: Tuyen Nguyen The
Priority: Minor
Fix For: 3.8.0.Final
Original Estimate: 4 hours
Time Spent: 4 hours
Remaining Estimate: 0 minutes
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
{code}
<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>
{code}
So , The configuration of JCR Index cache must be one for local mode and one for Cluster
mode ,
the path must be
{code}
gatein.jcr.index.cache.config=war:/conf/jcr/infinispan/${gatein.jcr.config.type}/indexer-config.xml
{code}
instead of
{code}
gatein.jcr.index.cache.config=war:/conf/jcr/infinispan/cluster/indexer-config.xml
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira