Infinispan replication not working?
jrox Jun 12, 2012 10:56 AMI have an issue that with my two nodes the clustering and replication seems to be setup but for some reason the data not get replicated properly.
I attached TRACE log files of the two nodes (Node 1 startup first) where at some time I insert something into the cache in Node 1 and expect it to be transferred to Node 2. Can anyone see any problem in the logs about that?
Strange thing is that if I use similar code on my local machine and initiate two processes, the replication works fine, not on the remote machine though where it should work.
In the logs I can see that the key object (SCDSK_tMySQLSCDCached_1) seems to be the problem. The key object seems to be in the cache on Node 1 and can be looked up wheras on Node 2 it seems to be a null object somehow.
This is basically the programmatic configuration of the cacheManager used to create the cache:
cacheManager = new org.infinispan.manager.DefaultCacheManager(
org.infinispan.configuration.global.GlobalConfigurationBuilder
.defaultClusteredBuilder().transport()
.addProperty("configurationFile", "jgroups-udp.xml").serialization()
.addAdvancedExternalizer(key.new SCDSKExternalizer_tMySQLSCDCached_1())
.addAdvancedExternalizer(value.new SCDStructExternalizer_tMySQLSCDCached_1())
.build(),
new org.infinispan.configuration.cache.ConfigurationBuilder()
.clustering()
.cacheMode(
org.infinispan.configuration.cache.CacheMode.REPL_SYNC)
.eviction()
.strategy(org.infinispan.eviction.EvictionStrategy.LRU)
.maxEntries(2000).expiration().build());
-
infinispan_nodes.zip 44.2 KB