sohami commented on issue #12347:
URL: https://github.com/apache/lucene/issues/12347#issuecomment-1591452446

   @javanna Thanks for your input.
   
   > Another thought on my end: executing sometimes on the caller thread, and 
sometimes on the executor makes things hard to reason about: how do you size 
the two thread pools if you can't easily tell what load they are subjected to?
   
   > Instead of making the slice executor configurable then, I would 
considering removing it entirely, and forcing the collection to always to 
happen on the separate thread pool. I think we'll need to figure out how to 
handle rejections from the executor thread pool, as today the collection 
happens on the caller thread whenever there's a rejection which I don't think 
is a behaviour we want to keep. We could also leave this to the executor 
implementation that is provided.
   
   As you mentioned earlier as well (and I agree) it is hard to understand the 
default which works best for all the usage. So providing a way to customize it 
will provide the flexibility to the users to adhere to their use cases. I think 
that way we can see what custom mechanism used across users works well and then 
change the default later as needed. I would also like to try to just remove the 
limiting factor but keep the mechanism to execute the last slice on the caller 
thread, so `SliceExecutor` type interface will still be useful.
   
   I think for now can we split the issue into 2. We can potentially make the 
change for 1st one now and follow up with 2nd one. Thoughts ?
   1. Take the `LeafSlice[]` in constructor to allow for custom slice 
computation.
   2. Discuss different options to customize `SliceExecutor` or we will want to 
replace it with some other interface
   


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