Apache Lucene open-source search software
SOLR-12076: Remove unnecessary printLayout usage in CDCR tests
Varun Thacker2a0b7767abcf
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 8f5c0c3a2b6..a49106a8b42 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -50,7 +50,22 @@ Apache ZooKeeper 3.4.11Jetty 9.4.8.v20171121-(No Changes)+Upgrade Notes+----------------------++New Features+----------------------++Bug Fixes+----------------------++Optimizations+----------------------++Other Changes+----------------------++* SOLR-12076: Remove unnecessary printLayout usage in CDCR tests (Varun Thacker)================== 7.3.0 ==================diff --git a/solr/core/src/test/org/apache/solr/cloud/cdcr/BaseCdcrDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/cdcr/BaseCdcrDistributedZkTest.javaindex cd45c159f3b..4e4a2999aab 100644--- a/solr/core/src/test/org/apache/solr/cloud/cdcr/BaseCdcrDistributedZkTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/cdcr/BaseCdcrDistributedZkTest.java@@ -49,7 +49,6 @@ import org.apache.solr.common.cloud.ClusterState;import org.apache.solr.common.cloud.DocCollection;import org.apache.solr.common.cloud.Replica;import org.apache.solr.common.cloud.Slice;-import org.apache.solr.common.cloud.SolrZkClient;import org.apache.solr.common.cloud.ZkCoreNodeProps;import org.apache.solr.common.cloud.ZkNodeProps;import org.apache.solr.common.cloud.ZkStateReader;@@ -198,12 +197,6 @@ public class BaseCdcrDistributedZkTest extends AbstractDistribZkTestBase {return server;}- protected void printLayout() throws Exception {- SolrZkClient zkClient = new SolrZkClient(zkServer.getZkHost(), AbstractZkTestCase.TIMEOUT);- zkClient.printLayoutToStdOut();- zkClient.close();- }-protected SolrInputDocument getDoc(Object... fields) throws Exception {SolrInputDocument doc = new SolrInputDocument();addFields(doc, fields);@@ -606,7 +599,6 @@ public class BaseCdcrDistributedZkTest extends AbstractDistribZkTestBase {// now wait till we see the leader for each shardfor (int i = 1; i <= shardCount; i++) {- this.printLayout();zkStateReader.getLeaderRetry(temporaryCollection, "shard" + i, 15000);}