Shibi-bala commented on PR #14524:
URL: https://github.com/apache/lucene/pull/14524#issuecomment-2845644300

   @javanna I think what users need (or expect) with a TaskExecutor is to be 
able to have the created tasks run on the ExecutorService provided by the user. 
In my example, I'd like to be able to have tasks submitted to the 
ExecutorService to be run in a "fair" way. Basically, implementing query 
fairness by grouping tasks by originating user and estimated task cost. So my 
ideal TaskExecutor ideally just submits tasks and then collects results. The 
current implementation also would run tasks outside the "fair" ExecutorService 
which is why I want to plug in my own task executor to give up the optimization 
of running tasks on the calling thread in exchange for complete control of when 
and the order tasks are run.
   
   Pluggable TaskExecutor is one solution here. As @jainankitk mentioned `Not 
sure if we save too much overhead and that makes code less readable.`


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