mirror of https://github.com/apache/druid.git
fix compilation error
This commit is contained in:
parent
863929d550
commit
82d623ada7
|
@ -154,7 +154,6 @@ public class AsyncQueryForwardingServlet extends HttpServlet
|
|||
|
||||
URI rewrittenURI = rewriteURI(hostFinder.getHost(query), req);
|
||||
|
||||
|
||||
final AsyncContext asyncContext = req.startAsync();
|
||||
// let proxy http client timeout
|
||||
asyncContext.setTimeout(0);
|
||||
|
@ -232,7 +231,7 @@ public class AsyncQueryForwardingServlet extends HttpServlet
|
|||
log.error(logError, "Unable to log query [%s]!", query);
|
||||
}
|
||||
|
||||
log.makeAlert(throwable, "Exception handling request [%s]", id)
|
||||
log.makeAlert(throwable, "Exception handling request [%s]", query.getId())
|
||||
.addData("query", query)
|
||||
.addData("peer", req.getRemoteAddr())
|
||||
.emit();
|
||||
|
|
|
@ -148,6 +148,16 @@ public class QueryResource
|
|||
);
|
||||
}
|
||||
|
||||
if ((boolean) query.getContextValue("b", false)) {
|
||||
System.out.println("***NEW QUERY***");
|
||||
while (true) {
|
||||
System.out.println("SLEEPING");
|
||||
Thread.sleep(10000);
|
||||
}
|
||||
} else if ((boolean) query.getContextValue("a", false)) {
|
||||
return Response.ok("hi").build();
|
||||
}
|
||||
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("Got query [%s]", query);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue