dsmiley commented on pull request #376:
URL: https://github.com/apache/solr/pull/376#issuecomment-964774703


   > can we call awaitTermination() 
   
   In at least daemon() -- no; it misses the point.
   
   Thinking about this more... I see a way to fix the race I described in the 
scenario I described last.  In 
org.apache.solr.common.util.ExecutorUtil.InheritableThreadLocalProvider#store 
(which is called by the thread submitting to the threadPool, increase a 
refCount there.  Then, it doesn't matter wether the Solr request thread 
finishes first or if the pool's Runnable completes first.  Whichever happens 
last will do the actual close'ing.  Make sense?
   


-- 
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...@solr.apache.org

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



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

Reply via email to