jpountz commented on PR #13124:
URL: https://github.com/apache/lucene/pull/13124#issuecomment-1959736838

   > So, we would have to update the MergeScheduler to have some methods to 
return the executor for us to use and pass to MergeState (which is only created 
via the SegmentMerger object). This means that the scheduler for individual 
merges and the parallelism available to those individual merges are independent.
   
   I agree with passing some executor from the scheduler to the `MergeState`, 
but I'm not sure I agree that this implies that inter-merge and intra-merge 
parallelism would be independent. For instance the merge scheduler could return 
a custom `Executor` that dynamically decides to run a new task in the current 
thread or to fork to a separate thread depending on how many threads are 
currently busy across all merges vs. the current value of 
`ConcurrentMergeScheduler.maxThreadCount`?


-- 
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