MCPcopy Create free account
hub / github.com/apache/solr / closeSearcher

Method closeSearcher

solr/core/src/java/org/apache/solr/core/SolrCore.java:2876–2888  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2874
2875 /*
2876 * Keeping this usage of isDebugEnabled because the extraction of the log data as a string might be slow. TODO:
2877 * Determine how likely it is that something is going to go wrong that will prevent the logging at INFO further
2878 * down, and if possible, prevent that situation. The handleRequest and postDecorateResponse methods do not indicate
2879 * that they throw any checked exceptions, so it would have to be an unchecked exception that causes any problems.
2880 */
2881 if (requestLog.isDebugEnabled() && rsp.getToLog().size() > 0) {
2882 // log request at debug in case something goes wrong and we aren't able to log later
2883 requestLog.debug(rsp.getToLogAsString());
2884 }
2885
2886 // TODO: this doesn't seem to be working correctly and causes problems with the example server
2887 // and distrib (for example /spell)
2888 // if (req.getParams().getBool(ShardParams.IS_SHARD,false) && !(handler instanceof
2889 // SearchHandler))
2890 // throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,"isShard is only acceptable
2891 // with search handlers");

Callers 2

doCloseMethod · 0.95
fetchLatestIndexMethod · 0.80

Calls 2

debugMethod · 0.80
decrefMethod · 0.45

Tested by

no test coverage detected