I have a cluster using jgroups(2.2.8) with members {A, B, C}. When I unplug the 
network on
{C} and leave it disconnected for about 20 seconds before reconnecting the 
network the
following occurs:

{A, B} consider themselves as a cluster and {C} considers itself as an other 
cluster
and any messages being sent between {A, B} and {C} will be thrown away with the 
following 
log:
2005-aug-29 10:31:36 org.jgroups.protocols.pbcast.NAKACK handleMessage
VARNING: 10.0.1.187:2147] discarded message from non-member 10.0.1.196:3942


What I want to happen is that {A, B} should shun {C} and that the 
ChannelListener 
on member {C} should invoke the channelShunned() method. 

How can I accomplish this?


My setup is JGroups 2.2.8, j2sdk1.4.2_08, windows XP and the following protocol 
stack:

String props =  "UDP(mcast_addr=228.1.2.53;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=true):" +
                
"PING(timeout=2000;num_initial_members=3;up_thread=true;down_thread=true):" +
                "FD(shun=true;up_thread=true;down_thread=true):" +
                "VERIFY_SUSPECT(timeout=1500;up_thread=true;down_thread=true):" 
+
                
"pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800;up_thread=true;down_thread=true):"
 +
                
"UNICAST(timeout=5000;window_size=100;min_threshold=10;down_thread=true):" +
                
"pbcast.STABLE(desired_avg_gossip=20000;up_thread=true;down_thread=true):" +
                "FRAG(frag_size=8192;down_thread=true;up_thread=true):" + 
                
"pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=true;print_local_addr=true):"
 +
                "pbcast.STATE_TRANSFER(up_thread=true;down_thread=true)";


                org.jgroup.JChannel m_dispChannel = new 
org.jgroup.JChannel(props);
                m_dispChannel.setOpt(JChannel.GET_STATE_EVENTS , Boolean.TRUE);
                m_dispChannel.setOpt(JChannel.AUTO_GETSTATE  , Boolean.TRUE);
                m_dispChannel.setChannelListener(this);
                m_dispChannel.connect( "JTEST" );


Thanks in advance!
/Andreas

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3892066#3892066

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3892066


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to