mirror of
https://github.com/apache/lucene.git
synced 2025-02-17 23:45:09 +00:00
fix commented out debug code
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1422372 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
181cad843a
commit
4714e250ea
@ -29,6 +29,8 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import javax.xml.parsers.ParserConfigurationException;
|
||||||
|
|
||||||
import org.apache.commons.io.FileUtils;
|
import org.apache.commons.io.FileUtils;
|
||||||
import org.apache.lucene.index.DirectoryReader;
|
import org.apache.lucene.index.DirectoryReader;
|
||||||
import org.apache.lucene.store.Directory;
|
import org.apache.lucene.store.Directory;
|
||||||
@ -71,8 +73,6 @@ import org.slf4j.Logger;
|
|||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
|
|
||||||
import javax.xml.parsers.ParserConfigurationException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @since solr 1.3
|
* @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: "
|
+ " but I still do not see the request state. I see state: "
|
||||||
+ state + " live:" + live);
|
+ 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<SolrIndexSearcher> 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 {
|
} finally {
|
||||||
if (core != null) {
|
if (core != null) {
|
||||||
core.close();
|
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<SolrIndexSearcher> 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<Object> getCoreStatus(CoreContainer cores, String cname) throws IOException {
|
protected NamedList<Object> getCoreStatus(CoreContainer cores, String cname) throws IOException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user