diff --git a/solr/core/src/test/org/apache/solr/cloud/BasicZkTest.java b/solr/core/src/test/org/apache/solr/cloud/BasicZkTest.java index 694cf6bfec0..bb5378dc068 100644 --- a/solr/core/src/test/org/apache/solr/cloud/BasicZkTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/BasicZkTest.java @@ -46,9 +46,13 @@ public class BasicZkTest extends AbstractZkTestCase { @Test public void testBasic() throws Exception { + // test using ZooKeeper assertTrue("Not using ZooKeeper", h.getCoreContainer().isZooKeeperAware()); + // for the really slow/busy computer, we wait to make sure we have a leader before starting + h.getCoreContainer().getZkController().getZkStateReader().getLeaderUrl("collection1", "shard1", 30000); + ZkController zkController = h.getCoreContainer().getZkController(); // test merge factor picked up @@ -154,6 +158,7 @@ public class BasicZkTest extends AbstractZkTestCase { } + zkController.getZkClient().printLayoutToStdOut(); } public SolrQueryRequest request(String... q) {