vsop-479 commented on PR #16889:
URL: https://github.com/apache/lucene/pull/16889#issuecomment-6620986939

   Sorry I was not clear. I meant we can fix this just in `maybeStall()` and 
remove the change in `merge()`:
   
   ```
   while (mergeThreadCount() >= maxMergeCount) {
   if (mergeThreads.contains(Thread.currentThread())) {
   // Individual comment...
           return false;
         }
   
   if (mergeSource.hasPendingMerges() == false) {
   // // Individual comment...
           return false;
   }
   ...
   ```
   
   The additional check in `merge()` would no longer be needed.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to