You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ma...@apache.org on 2012/12/19 18:53:57 UTC

svn commit: r1423985 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java

Author: mamta
Date: Wed Dec 19 17:53:57 2012
New Revision: 1423985

URL: http://svn.apache.org/viewvc?rev=1423985&view=rev
Log:
DERBY-6012 (Print thread dump and dump javacore if NetworkServerTestSetup has to kill off the Network Server start up process due to timeout)

Simple code change to dump threads and javacore


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java?rev=1423985&r1=1423984&r2=1423985&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java Wed Dec 19 17:53:57 2012
@@ -36,6 +36,8 @@ import java.util.ArrayList;
 import java.util.Arrays;
 import junit.framework.Test;
 import org.apache.derby.drda.NetworkServerControl;
+import org.apache.derby.iapi.error.ExceptionUtil;
+import org.apache.derby.iapi.services.info.JVMInfo;
 
 /**
  * Test decorator that starts the network server on startup
@@ -218,6 +220,9 @@ final public class NetworkServerTestSetu
                         spawnedServer = null;
                     }
                     fail(msg);
+                    //DERBY-6012 print thread dump and java core
+                    fail(ExceptionUtil.dumpThreads());
+                    JVMInfo.javaDump();
                 }
             }
         }