mirror of https://github.com/apache/lucene.git
SOLR-8655: DaemonStream should 'put' EOF Tuple on the blocking queue
This commit is contained in:
parent
7053a99f49
commit
23fe5f2dc5
|
@ -282,7 +282,11 @@ public class DaemonStream extends TupleStream implements Expressible {
|
|||
Map m = new HashMap();
|
||||
m.put("EOF", true);
|
||||
Tuple tuple = new Tuple(m);
|
||||
queue.offer(tuple);
|
||||
try {
|
||||
queue.put(tuple);
|
||||
} catch (InterruptedException e) {
|
||||
logger.error("Error in DaemonStream", e);
|
||||
}
|
||||
}
|
||||
setStopTime(new Date().getTime());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue