mirror of https://github.com/apache/druid.git
fix timeout check bug in DirectDruidClient (#4287)
This commit is contained in:
parent
d9f423f55d
commit
0e056863e4
|
@ -375,7 +375,7 @@ public class DirectDruidClient<T> implements QueryRunner<T>
|
|||
private long checkQueryTimeout()
|
||||
{
|
||||
long timeLeft = timeoutAt - System.currentTimeMillis();
|
||||
if (timeLeft >= 0) {
|
||||
if (timeLeft <= 0) {
|
||||
String msg = StringUtils.safeFormat("Query[%s] url[%s] timed out.", query.getId(), url);
|
||||
setupResponseReadFailure(msg, null);
|
||||
throw new RE(msg);
|
||||
|
|
Loading…
Reference in New Issue