From e9c90117372dc06914cf215062b7a183e8e07402 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Sat, 3 Mar 2012 15:48:34 +0000 Subject: [PATCH] add a long leader wait at the start of this test for slow/busy comps git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1296646 13f79535-47bb-0310-9956-ffa450edef68 --- solr/core/src/test/org/apache/solr/cloud/BasicZkTest.java | 5 +++++ 1 file changed, 5 insertions(+) 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) {