From 4714e250ea233c7f53e96561fd677a7780feade0 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Sat, 15 Dec 2012 22:01:13 +0000 Subject: [PATCH] fix commented out debug code git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1422372 13f79535-47bb-0310-9956-ffa450edef68 --- .../solr/handler/admin/CoreAdminHandler.java | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java b/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java index 931c6ac72db..ee2ce83809d 100644 --- a/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java +++ b/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java @@ -29,6 +29,8 @@ import java.util.List; import java.util.Map; import java.util.Properties; +import javax.xml.parsers.ParserConfigurationException; + import org.apache.commons.io.FileUtils; import org.apache.lucene.index.DirectoryReader; import org.apache.lucene.store.Directory; @@ -71,8 +73,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.xml.sax.SAXException; -import javax.xml.parsers.ParserConfigurationException; - /** * * @since solr 1.3 @@ -934,6 +934,29 @@ public class CoreAdminHandler extends RequestHandlerBase { + " but I still do not see the request state. I see state: " + state + " live:" + live); } + + // solrcloud_debug +// try {; +// LocalSolrQueryRequest r = new LocalSolrQueryRequest(core, new +// ModifiableSolrParams()); +// CommitUpdateCommand commitCmd = new CommitUpdateCommand(r, false); +// commitCmd.softCommit = true; +// core.getUpdateHandler().commit(commitCmd); +// RefCounted searchHolder = +// core.getNewestSearcher(false); +// SolrIndexSearcher searcher = searchHolder.get(); +// try { +// System.out.println(core.getCoreDescriptor().getCoreContainer().getZkController().getNodeName() +// + " to replicate " +// + searcher.search(new MatchAllDocsQuery(), 1).totalHits + " gen:" + +// core.getDeletionPolicy().getLatestCommit().getGeneration() + " data:" + +// core.getDataDir()); +// } finally { +// searchHolder.decref(); +// } +// } catch (Exception e) { +// +// } } finally { if (core != null) { core.close(); @@ -943,29 +966,6 @@ public class CoreAdminHandler extends RequestHandlerBase { } - // solrcloud_debug - // try {; - // LocalSolrQueryRequest r = new LocalSolrQueryRequest(core, new - // ModifiableSolrParams()); - // CommitUpdateCommand commitCmd = new CommitUpdateCommand(r, false); - // commitCmd.softCommit = true; - // core.getUpdateHandler().commit(commitCmd); - // RefCounted searchHolder = - // core.getNewestSearcher(false); - // SolrIndexSearcher searcher = searchHolder.get(); - // try { - // System.out.println(core.getCoreDescriptor().getCoreContainer().getZkController().getNodeName() - // + " to replicate " - // + searcher.search(new MatchAllDocsQuery(), 1).totalHits + " gen:" + - // core.getDeletionPolicy().getLatestCommit().getGeneration() + " data:" + - // core.getDataDir()); - // } finally { - // searchHolder.decref(); - // } - // } catch (Exception e) { - // - // } - } protected NamedList getCoreStatus(CoreContainer cores, String cname) throws IOException {