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 {