[ https://issues.apache.org/jira/browse/HIVE-25971?focusedWorklogId=732156&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-732156 ]
ASF GitHub Bot logged work on HIVE-25971: ----------------------------------------- Author: ASF GitHub Bot Created on: 24/Feb/22 07:33 Start Date: 24/Feb/22 07:33 Worklog Time Spent: 10m Work Description: guptashailesh92 commented on pull request #3046: URL: https://github.com/apache/hive/pull/3046#issuecomment-1049572142 In [CacheThreadPool](https://github.com/apache/hive/blob/7b7e8d4d7910b9b6dc2fe498a6a4228c628853c1/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/ObjectCache.java#L59), corePoolSize is zero so the other condition is always true, leading `timed` variable to be true. Thats why it's doing `workQueue.poll`. Created a sample [code](https://gist.github.com/guptashailesh92/fb50644db431f24fa842bf24cd3e172d), and was able to see the delay. -- 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-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 732156) Time Spent: 50m (was: 40m) > Tez task shutdown getting delayed due to cached thread pool not closed > ---------------------------------------------------------------------- > > Key: HIVE-25971 > URL: https://issues.apache.org/jira/browse/HIVE-25971 > Project: Hive > Issue Type: Improvement > Components: Tez > Affects Versions: 2.4.0, 3.1.2 > Reporter: Shailesh Gupta > Assignee: Shailesh Gupta > Priority: Minor > Labels: pull-request-available > Time Spent: 50m > Remaining Estimate: 0h > > We are using > a[CachedThreadPool|https://github.com/apache/hive/blob/branch-2.3/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/ObjectCache.java] > but not closing it. CachedThreadPool creates non daemon threads, causing the > Tez Task JVM shutdown delayed upto 1 min, as default idle timeout is 1 min. > -- This message was sent by Atlassian Jira (v8.20.1#820001)