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);
|
ZkTestServer server = new ZkTestServer(zkDir);
|
||||||
ZkController zkController = null;
|
ZkController zkController = null;
|
||||||
|
boolean testFinished = false;
|
||||||
try {
|
try {
|
||||||
server.run();
|
server.run();
|
||||||
|
|
||||||
|
@ -127,8 +128,12 @@ public class ZkControllerTest extends SolrTestCaseJ4 {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
zkController.printLayoutToStdOut();
|
zkController.printLayoutToStdOut();
|
||||||
}
|
}
|
||||||
|
testFinished = true;
|
||||||
} finally {
|
} finally {
|
||||||
|
if (testFinished) {
|
||||||
|
zkController.getZkClient().printLayoutToStdOut();
|
||||||
|
}
|
||||||
|
|
||||||
if (zkController != null) {
|
if (zkController != null) {
|
||||||
zkController.close();
|
zkController.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue