mirror of
https://github.com/apache/druid.git
synced 2025-02-25 12:35:33 +00:00
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()
|
private long checkQueryTimeout()
|
||||||
{
|
{
|
||||||
long timeLeft = timeoutAt - System.currentTimeMillis();
|
long timeLeft = timeoutAt - System.currentTimeMillis();
|
||||||
if (timeLeft >= 0) {
|
if (timeLeft <= 0) {
|
||||||
String msg = StringUtils.safeFormat("Query[%s] url[%s] timed out.", query.getId(), url);
|
String msg = StringUtils.safeFormat("Query[%s] url[%s] timed out.", query.getId(), url);
|
||||||
setupResponseReadFailure(msg, null);
|
setupResponseReadFailure(msg, null);
|
||||||
throw new RE(msg);
|
throw new RE(msg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user