Hi All,
I am facing a strange problem : I am trying to cluster 2 (and later 3) caches . My tests
are based on the test.examples.StudentMaintTest. Code remains the same except for private
PojoCache createCache(String name), there is one method for each of the cache that reads
different conf files.
one conf file has :
<TCP bind_addr="10.32.2.48" loopback="true"
start_port="7800" enable_diagnostics="false" />
| <TCPPING down_thread="true"
initial_hosts="10.32.2.48[7800],10.32.2.48[7801]"
num_initial_members="3" port_range="5" timeout="3500"
up_thread="true" />
| <MERGE2 max_interval="10000" min_interval="5000"/>
| <FD down_thread="true" max_tries="5" shun="true"
timeout="2500" up_thread="true"/>
| <VERIFY_SUSPECT down_thread="false" timeout="1500"
up_thread="false"/>
| <pbcast.NAKACK down_thread="true" gc_lag="100"
retransmit_timeout="3000" up_thread="true"/>
| <pbcast.STABLE desired_avg_gossip="20000" down_thread="false"
up_thread="false"/>
| <pbcast.GMS down_thread="true" join_retry_timeout="2000"
join_timeout="5000" print_local_addr="false" shun="false"
up_thread="true"/>
| <pbcast.STATE_TRANSFER down_thread="true"
up_thread="true"/>
the other one has :
<TCP bind_addr="10.32.2.48" loopback="true"
start_port="7801" enable_diagnostics="false" />
| <TCPPING down_thread="true"
initial_hosts="10.32.2.48[7800],10.32.2.48[7801]"
num_initial_members="3" port_range="5" timeout="3500"
up_thread="true"/>
| <MERGE2 max_interval="10000" min_interval="5000"/>
| <FD down_thread="true" max_tries="5" shun="true"
timeout="2500" up_thread="true"/>
| <VERIFY_SUSPECT down_thread="false" timeout="1500"
up_thread="false"/>
| <pbcast.NAKACK down_thread="true" gc_lag="100"
retransmit_timeout="3000" up_thread="true"/>
| <pbcast.STABLE desired_avg_gossip="20000" down_thread="false"
up_thread="false"/>
| <pbcast.GMS down_thread="true" join_retry_timeout="2000"
join_timeout="5000" print_local_addr="false" shun="false"
up_thread="true"/>
| <pbcast.STATE_TRANSFER down_thread="true"
up_thread="true"/>
and nothing happens (regarding sychronization) test fails : NullPointerException is thrown
when doing joe2.addCourse(bar_); . Joe2 comes from Student joe2 = (Student)
cache2_.getObject("/students/65432");
If I do NOT list all the "servers" in the TCPPING it works !!!
Did I do something wrong in the service.xml files ? or did I really miss something ?
Thanks for your answers
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997629#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...