mirror of https://github.com/apache/druid.git
Fix deadlock in DirectDruidClient
This commit is contained in:
parent
76cd7e0f56
commit
a0b2a63d7f
|
@ -214,9 +214,7 @@ public class DirectDruidClient<T> implements QueryRunner<T>
|
||||||
@Override
|
@Override
|
||||||
public InputStream nextElement()
|
public InputStream nextElement()
|
||||||
{
|
{
|
||||||
synchronized (done) {
|
|
||||||
try {
|
try {
|
||||||
// Ensures more elements are expected via `done`
|
|
||||||
return queue.take();
|
return queue.take();
|
||||||
}
|
}
|
||||||
catch (InterruptedException e) {
|
catch (InterruptedException e) {
|
||||||
|
@ -225,7 +223,6 @@ public class DirectDruidClient<T> implements QueryRunner<T>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue