jpountz opened a new pull request, #12959:
URL: https://github.com/apache/lucene/pull/12959

   Before this change, `ConcurrentApproximatePriorityQueue#poll` could sometimes
   return `null` even though the queue was empty at no point in time. The
   practical implication is that we can end up with more DWPTs in memory than
   indexing threads, which, while not strictly a bug, may require doing more
   merging than we'd like later on.
   
   I ran luceneutil's `IndexGeonames` with this change, and
   `ConcurrentApproximatePriorityQueue#poll` was not the main source of
   contention. I instrumented the code to check how many DWPTs got pulled from 
the
   queue using the optimistic path vs. pessimistic path and got 8525598 for the
   optimistic path vs. 12247 for the pessimistic path.
   
   Closes #12649 #12916


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to