db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r462705 - /db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DerbyNetAutoStart.java
Date Wed, 11 Oct 2006 06:18:08 GMT
Author: fuzzylogic
Date: Tue Oct 10 23:18:07 2006
New Revision: 462705

URL: http://svn.apache.org/viewvc?view=rev&rev=462705
Log:
DERBY-803: Give the server threads time to finish their close
operations before we shut down the engine. Merge of revision 442490 from trunk.

Modified:
    db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DerbyNetAutoStart.java

Modified: db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DerbyNetAutoStart.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DerbyNetAutoStart.java?view=diff&rev=462705&r1=462704&r2=462705
==============================================================================
--- db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DerbyNetAutoStart.java
(original)
+++ db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/DerbyNetAutoStart.java
Tue Oct 10 23:18:07 2006
@@ -631,6 +631,13 @@
             System.out.println( "  Connection close failed:");
             System.out.println( "    " + sqle.getMessage());
         }
+        // DERBY-803: Give the server threads time to finish their close
+        // operations before we shut down the engine. Otherwise, we might get
+        // some (harmless) error messages printed to the console. See also
+        // DERBY-1020.
+        try {
+            Thread.sleep(5000);
+        } catch (InterruptedException ex) {}
         try
         {
             DriverManager.getConnection( "jdbc:derby:;shutdown=true");



Mime
View raw message