[jboss-svn-commits] JBL Code SVN: r37634 - labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/tests/classes/com/arjuna/ats/jta/distributed.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Oct 20 10:58:25 EDT 2011


Author: tomjenkinson
Date: 2011-10-20 10:58:25 -0400 (Thu, 20 Oct 2011)
New Revision: 37634

Modified:
   labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/tests/classes/com/arjuna/ats/jta/distributed/SimpleIsolatedServers.java
Log:
JBTM-895 documentation of the simultaneous recover test

Modified: labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/tests/classes/com/arjuna/ats/jta/distributed/SimpleIsolatedServers.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/tests/classes/com/arjuna/ats/jta/distributed/SimpleIsolatedServers.java	2011-10-20 13:47:11 UTC (rev 37633)
+++ labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/tests/classes/com/arjuna/ats/jta/distributed/SimpleIsolatedServers.java	2011-10-20 14:58:25 UTC (rev 37634)
@@ -113,7 +113,20 @@
 	@Test
 	public void testSimultaneousRecover() throws XAException, DummyRemoteException {
 		// Simulates different servers attempting to recover the XIDs from the
-		// same server
+		// same server basically XATerminator::recover doesn't allow two calls
+		// at once this used to fail, but after I changed XATerminatorImple, it
+		// can't fail now doesn't matter if there are Xids or not you see it
+		// used to be done in two passes with a different flag
+		// 	recover(TMSTARTSCAN)/recover(TMENDSCAN)
+		// but that is for JCA, not us, we have some knowledge of the state of
+		// transactions so we pass in our node name instead and call recover in
+		// a single scan
+		// to put it another way, the test used to say:
+		// 	lookupProvider.lookup(2000).propagateRecover(1000, TMSTARTSCAN);
+		// 	lookupProvider.lookup(2000).propagateRecover(3000, TMSTARTSCAN);
+		// 	lookupProvider.lookup(2000).propagateRecover(3000, TMENDSCAN);
+		// 	lookupProvider.lookup(2000).propagateRecover(1000, TMENDSCAN);
+		// That second call to TMSTARTSCAN would fail
 		{
 			RemoteServer server = lookupProvider.lookup(2000);
 			server.propagateRecover(1000);



More information about the jboss-svn-commits mailing list