Fix wait time
This commit is contained in:
parent
ef15bf7e8c
commit
a48bea6c63
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user