0 Replies Latest reply on Aug 12, 2014 11:51 AM by Prashant Thakur

    CacheStore.load issue

    Prashant Thakur Novice

      When we load data from Database with the below configuration we observe that the data is not replicate across the nodes.

      Do we need to write some Interceptors for achieving the functionality of replication or we are missing some configuration.

      If Interceptor needs to be written where in the chain should we be specifying the same. This is configured as a Singleton store at present .

       

      Configuration is : ConfigurationBuilder{classLoader=java.lang.ref.WeakReference@337e9c58, clustering=ClusteringConfigurationBuilder{async=AsyncConfigurationBuilder{asyncMarshalling=false, replicationQueue=null, replicationQueueInterval=5000, replicationQueueMaxElements=1000, useReplicationQueue=false}, cacheMode=DIST_SYNC, hash=HashConfigurationBuilder{consistentHashFactory=null, hash=MurmurHash3, numOwners=2, numSegments=100, groups=GroupsConfigurationBuilder{enabled=false, groupers=[]}}, l1=L1ConfigurationBuilder{enabled=false, invalidationThreshold=0, lifespan=600000, cleanupTaskFrequency=600000, onRehash=false}, stateTransfer=StateTransferConfigurationBuilder{chunkSize=1000, fetchInMemoryState=true, awaitInitialTransfer=true, timeout=3600000}, sync=SyncConfigurationBuilder{replTimeout=15000}}, customInterceptors=CustomInterceptorsConfigurationBuilder{interceptors=[]}, dataContainer=DataContainerConfigurationBuilder{dataContainer=null, properties={}, keyEquivalence=org.infinispan.commons.equivalence.AnyEquivalence@3d4a6fd1, valueEquivalence=org.infinispan.commons.equivalence.AnyEquivalence@3d4a6fd1}, deadlockDetection=DeadlockDetectionConfigurationBuilder{enabled=false, spinDuration=100}, eviction=EvictionConfigurationBuilder{maxEntries=-1, strategy=NONE, threadPolicy=DEFAULT}, expiration=ExpirationConfigurationBuilder{lifespan=-1, maxIdle=-1, reaperEnabled=true, wakeUpInterval=60000}, indexing=IndexingConfigurationBuilder{enabled=false, indexLocalOnly=false, properties={}}, invocationBatching=InvocationBatchingConfigurationBuilder{enabled=false}, jmxStatistics=JMXStatisticsConfigurationBuilder{enabled=true}, persistence=PersistenceConfigurationBuilder{stores=[com.subex.spark.common.distributedcaching.server.cachestore.IspnCacheStoreConfigurationBuilder@61f321c6], passivation=false}, locking=LockingConfigurationBuilder{concurrencyLevel=32, isolationLevel=READ_COMMITTED, lockAcquisitionTimeout=10000, useLockStriping=false, writeSkewCheck=false}, modules=[], storeAsBinary=StoreAsBinaryConfigurationBuilder{enabled=false, storeKeysAsBinary=true, storeValuesAsBinary=true}, transaction=TransactionConfigurationBuilder{autoCommit=true, cacheStopTimeout=30000, eagerLockingSingleNode=false, lockingMode=OPTIMISTIC, syncCommitPhase=true, syncRollbackPhase=false, transactionManagerLookup=org.infinispan.transaction.lookup.GenericTransactionManagerLookup@212e8067, transactionSynchronizationRegistryLookup=null, transactionMode=TRANSACTIONAL, useEagerLocking=false, useSynchronization=true, recovery=RecoveryConfigurationBuilder{enabled=true, recoveryInfoCacheName='__recoveryInfoCacheName__'}, use1PcForAutoCommitTransactions=false, completedTxTimeout=15000, reaperWakeUpInterval=1000}, versioning=VersioningConfigurationBuilder{enabled=true, scheme=NONE}, unsafe=UnsafeConfigurationBuilder{unreliableReturnValues=false}, sites=org.infinispan.configuration.cache.SitesConfigurationBuilder@73effb35, compatibility=org.infinispan.configuration.cache.CompatibilityModeConfigurationBuilder@1055900a}