My two nodes won't stop arguing.
jameselliot Jul 20, 2005 11:06 AMI now have two servers running TreeCache as a hibernate 2nd level cache. The final aim is to have a synchronous replicated cache, each server has its own database and I hope to be able to write all data to both databases using TreeCache.
Currently my two cache setups refuse to talk to each other:
First cache to start says:
2005-07-20 16:00:15,068 WARN [org.jgroups.protocols.pbcast.NAKACK] 10.0.10.10:36755] discarded message from non-member 10.0.10.50:33375 2005-07-20 16:00:32,550 ERROR [org.jgroups.protocols.pbcast.Digest] index 2 out of bounds, please create new Digest if you want more members ! 2005-07-20 16:00:32,551 ERROR [org.jgroups.protocols.pbcast.Digest] index 2 out of bounds, please create new Digest if you want more members ! 2005-07-20 16:00:32,564 ERROR [org.jgroups.protocols.pbcast.Digest] index 2 out of bounds, please create new Digest if you want more members ! 2005-07-20 16:00:32,565 WARN [org.jgroups.protocols.pbcast.NAKACK] 10.0.10.10:36755] discarded message from non-member 10.0.10.50:33376 2005-07-20 16:00:52,168 ERROR [org.jgroups.protocols.pbcast.Digest] index 2 out of bounds, please create new Digest if you want more members ! 2005-07-20 16:00:52,169 ERROR [org.jgroups.protocols.pbcast.Digest] index 2 out of bounds, please create new Digest if you want more members ! 2005-07-20 16:00:52,169 ERROR [org.jgroups.protocols.pbcast.Digest] index 2 out of bounds, please create new Digest if you want more members ! 2005-07-20 16:00:52,170 WARN [org.jgroups.protocols.pbcast.NAKACK] 10.0.10.10:36755] discarded message from non-member 10.0.10.50:33377
Second cache to start says:
2005-07-20 16:04:01,084 WARN [org.jgroups.protocols.pbcast.NAKACK] 10.0.10.50:33379] discarded message from non-member 10.0.10.10:36755 2005-07-20 16:04:01,084 WARN [org.jgroups.protocols.pbcast.NAKACK] 10.0.10.50:33379] discarded message from non-member 10.0.10.10:36755 2005-07-20 16:04:01,084 WARN [org.jgroups.protocols.pbcast.NAKACK] 10.0.10.50:33379] discarded message from non-member 10.0.10.10:36755 2005-07-20 16:04:01,084 WARN [org.jgroups.protocols.pbcast.NAKACK] 10.0.10.50:33379] discarded message from non-member 10.0.10.10:36755 2005-07-20 16:04:01,084 WARN [org.jgroups.protocols.pbcast.NAKACK] 10.0.10.50:33379] discarded message from non-member 10.0.10.10:36755 2005-07-20 16:04:01,084 WARN [org.jgroups.protocols.pbcast.NAKACK] 10.0.10.50:33379] discarded message from non-member 10.0.10.10:36755 2005-07-20 16:04:01,600 INFO [STDOUT] ------------------------------------------------------- GMS: address is 10.0.10.50:33380 ------------------------------------------------------- 2005-07-20 16:04:03,604 INFO [org.jboss.cache.TreeCache] viewAccepted(): new members: [10.0.10.50:33380] 2005-07-20 16:04:03,604 INFO [org.jboss.cache.TreeCache] new cache is null (maybe first member in cluster)
Both caches are configured the same with:
<server> <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/> <mbean code="org.jboss.invocation.jrmp.server.JRMPProxyFactory" name="localhost:service=proxyFactory,type=jrmp,target=factory"> <attribute name="InvokerName">jboss:service=invoker,type=jrmp</attribute> <attribute name="TargetName">jboss.cache:service=TreeCache</attribute> <attribute name="JndiName">VicopTestCache</attribute> <attribute name="InvokeTargetMethod">true</attribute> <attribute name="ExportedInterface">org.jboss.cache.TreeCacheMBean</attribute> <attribute name="ClientInterceptors"> <iterceptors> <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor> <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor> <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor> </iterceptors> </attribute> <depends>jboss:service=invoker,type=jrmp</depends> <depends>jboss.cache:service=TreeCache</depends> <attribute name="IsolationLevel">REPEATABLE_READ</attribute> <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute> <attribute name="ClusterName">VicopTestCluster</attribute> <attribute name="CacheMode">REPL_SYNC</attribute> <attribute name="ClusterConfig"> <config> <!-- UDP: if you have a multihomed machine, set the bind_addr attribute to the appropriate NIC IP address --> <!-- UDP: On Windows machines, because of the media sense feature being broken with multicast (even after disabling media sense) set the loopback attribute to true --> <UDP mcast_addr="225.10.10.20" mcast_port="45566" ip_ttl="64" ip_mcast="true" mcast_send_buf_size="150000" mcast_recv_buf_size="80000" ucast_send_buf_size="150000" ucast_recv_buf_size="80000" loopback="false"/> <PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false"/> <MERGE2 min_interval="10000" max_interval="20000"/> <FD shun="true" up_thread="true" down_thread="true"/> <VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false"/> <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800" max_xmit_size="8192" up_thread="false" down_thread="false"/> <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10" down_thread="false"/> <pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false"/> <FRAG frag_size="8192" down_thread="false" up_thread="false"/> <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true"/> <pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/> </config> </attribute> </mbean> </server>
I have had a good hunt around for configuring a Digest but have found nothing, a few posts have mentioned the 'discarded message from non-member' error but do not appear to have solved the problem.
Any suggestions would be most welcome.
Thank you, --James.