lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1236037 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ZkControllerTest.java
Date Thu, 26 Jan 2012 03:58:52 GMT
Author: markrmiller
Date: Thu Jan 26 03:58:52 2012
New Revision: 1236037

URL: http://svn.apache.org/viewvc?rev=1236037&view=rev
Log:
if test fails, print zk layout

Modified:
    lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ZkControllerTest.java

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ZkControllerTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ZkControllerTest.java?rev=1236037&r1=1236036&r2=1236037&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ZkControllerTest.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ZkControllerTest.java Thu Jan
26 03:58:52 2012
@@ -102,6 +102,7 @@ public class ZkControllerTest extends So
 
     ZkTestServer server = new ZkTestServer(zkDir);
     ZkController zkController = null;
+    boolean testFinished = false;
     try {
       server.run();
 
@@ -127,8 +128,12 @@ public class ZkControllerTest extends So
       if (DEBUG) {
         zkController.printLayoutToStdOut();
       }
-
+      testFinished = true;
     } finally {
+      if (testFinished) {
+        zkController.getZkClient().printLayoutToStdOut();
+      }
+      
       if (zkController != null) {
         zkController.close();
       }



Mime
View raw message