mirror of https://github.com/apache/lucene.git
if test fails, print zk layout
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1236037 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
11396fff5b
commit
19f8d0f623
|
@ -102,6 +102,7 @@ public class ZkControllerTest extends SolrTestCaseJ4 {
|
|||
|
||||
ZkTestServer server = new ZkTestServer(zkDir);
|
||||
ZkController zkController = null;
|
||||
boolean testFinished = false;
|
||||
try {
|
||||
server.run();
|
||||
|
||||
|
@ -127,8 +128,12 @@ public class ZkControllerTest extends SolrTestCaseJ4 {
|
|||
if (DEBUG) {
|
||||
zkController.printLayoutToStdOut();
|
||||
}
|
||||
|
||||
testFinished = true;
|
||||
} finally {
|
||||
if (testFinished) {
|
||||
zkController.getZkClient().printLayoutToStdOut();
|
||||
}
|
||||
|
||||
if (zkController != null) {
|
||||
zkController.close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue