[jboss-user] [Clustering/JBoss] - Re: How to simulate testing network cluster splits?
bstansberry@jboss.com
do-not-reply at jboss.com
Tue Apr 8 21:59:44 EDT 2008
See http://anonsvn.jboss.org/repos/jbossas/trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/DRMTestCase.java, testisMasterReplica() for a test that simulates a network partition. That one configures the service being tested with a JGroups channel configured to use TUNNEL + an in-process GossipRouter. A simple call to GossipRouter.stop() is semi-equivalent to failing a network switch.
Another possible approach is to use the JGroups DISCARD protocol. That's a test protocol that discards messages; discard them all and it's like a network partition. A test that uses that can be seen at http://javagroups.cvs.sourceforge.net/javagroups/JGroups/tests/junit/org/jgroups/tests/DiscardTest.java?revision=1.17&view=markup
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142543#4142543
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142543
More information about the jboss-user
mailing list