[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Duplicated Messages during failover and NullPersistence
clebert.suconic@jboss.com
do-not-reply at jboss.com
Thu Mar 19 21:19:09 EDT 2009
Just to complete the thread, this failure I was talking about is related to an intermitent failure that has happened on hudson.
It doesn't fail if using real files (*probably* duplicate detection behaves different when using real files).
This is the diff to replicate the issue.
Index: tests/src/org/jboss/messaging/tests/integration/cluster/failover/AutomaticFailoverWithDiscoveryTest.java
| ===================================================================
| --- tests/src/org/jboss/messaging/tests/integration/cluster/failover/AutomaticFailoverWithDiscoveryTest.java (revision 6120)
| +++ tests/src/org/jboss/messaging/tests/integration/cluster/failover/AutomaticFailoverWithDiscoveryTest.java (working copy)
| @@ -63,6 +63,19 @@
| // Constructors --------------------------------------------------
|
| // Public --------------------------------------------------------
| +
| + public void testRepeat() throws Exception
| + {
| + for (int i = 0; i < 100; i++)
| + {
| + if (i > 0)
| + {
| + tearDown();
| + setUp();
| + }
| + testFailover();
| + }
| + }
|
| public void testFailover() throws Exception
| {
| @@ -173,7 +186,7 @@
| protected void setUp() throws Exception
| {
| super.setUp();
| - setupGroupServers(true, "bc1", 5432, groupAddress, groupPort);
| + setupGroupServers(false, "bc1", 5432, groupAddress, groupPort);
| }
|
| @Override
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219680#4219680
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219680
More information about the jboss-dev-forums
mailing list