Fix wait time
This commit is contained in:
parent
ef15bf7e8c
commit
a48bea6c63
@ -33,8 +33,8 @@ public class ReactiveLeafCollector implements LeafCollector {
|
|||||||
LLUtils.ensureBlocking();
|
LLUtils.ensureBlocking();
|
||||||
var scoreDoc = new ScoreDoc(leafReaderContext.docBase + i, 0, shardIndex);
|
var scoreDoc = new ScoreDoc(leafReaderContext.docBase + i, 0, shardIndex);
|
||||||
while (scoreDocsSink.requestedFromDownstream() < 0 && !scoreDocsSink.isCancelled()) {
|
while (scoreDocsSink.requestedFromDownstream() < 0 && !scoreDocsSink.isCancelled()) {
|
||||||
// 100ms
|
// 10ms
|
||||||
LockSupport.parkNanos(100L * 1000000L);
|
LockSupport.parkNanos(10L * 1000000L);
|
||||||
}
|
}
|
||||||
scoreDocsSink.next(scoreDoc);
|
scoreDocsSink.next(scoreDoc);
|
||||||
if (scoreDocsSink.isCancelled()) {
|
if (scoreDocsSink.isCancelled()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user