You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/02/24 00:27:12 UTC

[GitHub] [hive] rbalamohan commented on pull request #3046: HIVE-25971: Closing the thread pool created for async cache

rbalamohan commented on pull request #3046:
URL: https://github.com/apache/hive/pull/3046#issuecomment-1049360307


   Is it because of https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/util/concurrent/ThreadPoolExecutor.java#L1061 ?
   {code}
   boolean timed = allowCoreThreadTimeOut || wc > corePoolSize;
   ..
   ...
   ...
     Runnable r = timed ?
                       workQueue.poll(keepAliveTime, TimeUnit.NANOSECONDS) :
                       workQueue.take();
   {code}
   
   However, allowCoreThreadTimeOut will be false by default. 
   
   So unless someone explicitly sets allowCoreThreadTimeOut(true), this condition should not happen.
   
   Can you share the logs when you observed 1 minute delay in shutdown?


-- 
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: gitbox-unsubscribe@hive.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org