Fix wait time

This commit is contained in:
Andrea Cavalli 2021-11-08 23:46:02 +01:00
parent ef15bf7e8c
commit a48bea6c63

View File

@ -33,8 +33,8 @@ public class ReactiveLeafCollector implements LeafCollector {
LLUtils.ensureBlocking();
var scoreDoc = new ScoreDoc(leafReaderContext.docBase + i, 0, shardIndex);
while (scoreDocsSink.requestedFromDownstream() < 0 && !scoreDocsSink.isCancelled()) {
// 100ms
LockSupport.parkNanos(100L * 1000000L);
// 10ms
LockSupport.parkNanos(10L * 1000000L);
}
scoreDocsSink.next(scoreDoc);
if (scoreDocsSink.isCancelled()) {