From 6737f595475c76833a19b2b8f0ca216048f55466 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Fri, 15 Aug 2008 16:21:04 +0000 Subject: [PATCH] quick'n'dirty sleep/block test git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@686274 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/solr/handler/component/SearchHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/org/apache/solr/handler/component/SearchHandler.java b/src/java/org/apache/solr/handler/component/SearchHandler.java index 981cef80356..e4fb4836361 100644 --- a/src/java/org/apache/solr/handler/component/SearchHandler.java +++ b/src/java/org/apache/solr/handler/component/SearchHandler.java @@ -132,6 +132,8 @@ public class SearchHandler extends RequestHandlerBase implements SolrCoreAware @Override public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception, ParseException, InstantiationException, IllegalAccessException { + // int sleep = req.getParams().getInt("sleep",0); + // if (sleep > 0) {log.severe("SLEEPING for " + sleep); Thread.sleep(sleep);} ResponseBuilder rb = new ResponseBuilder(); rb.req = req; rb.rsp = rsp;