quick'n'dirty sleep/block test

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@686274 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-08-15 16:21:04 +00:00
parent f00c5cbda0
commit 6737f59547
1 changed files with 2 additions and 0 deletions

View File

@ -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;