List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:November 25 2007 5:09am
Subject:Rev 287: Fixed OutOfConnectionProblemTest in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel
View as plain text  
At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel

------------------------------------------------------------
revno: 287
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: devel
timestamp: Sat 2007-11-24 21:08:52 -0800
message:
  Fixed OutOfConnectionProblemTest
modified:
  java/testsuite/ndbj/OutOfConnectionProblemTest.java
outofconnectionprobl-20071114201416-ycjx0i6uz5umawy0-1
=== modified file 'java/testsuite/ndbj/OutOfConnectionProblemTest.java'
--- a/java/testsuite/ndbj/OutOfConnectionProblemTest.java	2007-11-17 20:12:22 +0000
+++ b/java/testsuite/ndbj/OutOfConnectionProblemTest.java	2007-11-25 05:08:52 +0000
@@ -1,7 +1,5 @@
 package testsuite.ndbj;
 
-import java.util.*;
-import java.sql.Timestamp;
 import testsuite.BaseNdbjTestCase;
 import com.mysql.cluster.ndbj.*;
 
@@ -81,7 +79,8 @@
 			     iteration++) {
 				generateRequestTxs(iteration);
 
-			int x=sendPollNdb(TRANSACTIONS_TIMEOUT, NUM_TRANSACTIONS, FORCE_SEND);	
+				sendPollNdb(TRANSACTIONS_TIMEOUT, NUM_TRANSACTIONS, FORCE_SEND);	
+				System.gc(); System.runFinalization();
 			}
 
 			System.out.println("Performing cooldown");
@@ -110,15 +109,12 @@
 		NdbOperation orderOp;
 		BaseCallback callback;
 
-		Hashtable ht= new Hashtable();
-
 		try {
 
 		    for (int elementCount = 1;
 			     elementCount < (NUMBER_OF_ELEMENT_INSERTIONS) + 1;
 			     elementCount++) {
 		    
-				int id = (NUMBER_OF_ELEMENT_INSERTIONS * theLastBatch) + elementCount;
 				cnt++;
 				trans = startCountedTransaction();
 

Thread
Rev 287: Fixed OutOfConnectionProblemTest in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/develMonty Taylor25 Nov