db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r417131 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/runtimeinfo.java
Date Mon, 26 Jun 2006 06:45:01 GMT
Author: kahatlen
Date: Sun Jun 25 23:45:01 2006
New Revision: 417131

URL: http://svn.apache.org/viewvc?rev=417131&view=rev
Log:
DERBY-1455: Intermittent failure in derbynet/runtimeinfo.java

The problem occurs when the test has opened four connections, closes
three of them and runs getRuntimeInfo() on the server. The test
expects that there is one active session on the server, but in some
cases, the network server has not had enough time to clean up after
the closed connections, and more sessions are listed as active.

The patch solves this timing issue by invoking Thread.sleep(1000)
before calling getRuntimeInfo().

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/runtimeinfo.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/runtimeinfo.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/runtimeinfo.java?rev=417131&r1=417130&r2=417131&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/runtimeinfo.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/runtimeinfo.java
Sun Jun 25 23:45:01 2006
@@ -145,6 +145,8 @@
 			 * - by calling NetworkServerControl.getRuntimeInfo 
 			 */
 			System.out.println("Testing Runtimeinfo after closing connectiosn");
+			// give the network server a second to clean up (DERBY-1455)
+			Thread.sleep(1000);
 			NetworkServerControl derbyServer = 
 				new NetworkServerControl( InetAddress.getByName("localhost"),
 										NetworkServerControl.DEFAULT_PORTNUMBER);



Mime
View raw message