db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1423985 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java
Date Wed, 19 Dec 2012 17:53:57 GMT
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();
                 }
             }
         }



Mime
View raw message