[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/statetransfer ...
Manik Surtani
manik at jboss.org
Wed Mar 21 12:11:40 EDT 2007
User: msurtani
Date: 07/03/21 12:11:40
Modified: tests/functional/org/jboss/cache/statetransfer
StateTransferTestBase.java VersionedTestBase.java
Log:
Stuff
Revision Changes Path
1.35 +7 -1 JBossCache/tests/functional/org/jboss/cache/statetransfer/StateTransferTestBase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: StateTransferTestBase.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/statetransfer/StateTransferTestBase.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- StateTransferTestBase.java 21 Feb 2007 18:00:52 -0000 1.34
+++ StateTransferTestBase.java 21 Mar 2007 16:11:40 -0000 1.35
@@ -102,6 +102,11 @@
CacheMode mode = sync ? CacheMode.REPL_SYNC : CacheMode.REPL_ASYNC;
Configuration c = UnitTestCacheFactory.createConfiguration(mode);
+ if (sync)
+ {
+ c.setSyncRollbackPhase(true);
+ c.setSyncCommitPhase(true);
+ }
c.setClusterName("VersionedTestBase");
c.setReplVersionString(getReplicationVersion());
// Use a long timeout to facilitate setting debugger breakpoints
@@ -117,7 +122,8 @@
}
// tree.setConfiguration(c);
CacheSPI tree = (CacheSPI) DefaultCacheFactory.getInstance().createCache(c, false);
-
+ //c.setLockAcquisitionTimeout(60000); // a whole minute?!?? Lots of state to tfr?
+ //c.setSyncReplTimeout(60000);
configureMultiplexer(tree);
// Put the cache in the map before starting, so if it fails in
1.29 +4 -2 JBossCache/tests/functional/org/jboss/cache/statetransfer/VersionedTestBase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: VersionedTestBase.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/statetransfer/VersionedTestBase.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- VersionedTestBase.java 11 Jan 2007 13:49:07 -0000 1.28
+++ VersionedTestBase.java 21 Mar 2007 16:11:40 -0000 1.29
@@ -708,12 +708,12 @@
}
// Pause to allow other work to proceed
- TestingUtil.sleepThread((long) 100);
+ TestingUtil.sleepThread(100);
}
// Sleep to allow any in transit msgs to clear
// if (!sync)
- TestingUtil.sleepThread((long) 1000);
+ TestingUtil.sleepThread(1000);
// Ensure the stressors saw no exceptions
for (int i = 0; i < count; i++)
@@ -725,6 +725,8 @@
}
+ TestingUtil.sleepThread(1000);
+
// Compare cache contents
for (int i = 0; i < count; i++)
{
More information about the jboss-cvs-commits
mailing list