Slim Bouguerra created HIVE-23041:
-------------------------------------

             Summary: LLAP purge command can lead to resource leak
                 Key: HIVE-23041
                 URL: https://issues.apache.org/jira/browse/HIVE-23041
             Project: Hive
          Issue Type: Bug
            Reporter: Slim Bouguerra


As per the Java Spec 
https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html

An unused ExecutorService should be shut down to allow reclamation of its 
resources.

Code like this is a serious resource leak in case  user fires multiple commands.

https://github.com/apache/hive/blob/7ae6756d40468d18b65423a0b5174b827dc42b60/ql/src/java/org/apache/hadoop/hive/ql/processors/LlapCacheResourceProcessor.java#L132

The other question that this raise is how those tasks responds to interrupt or 
cancel on the thread level [~prasanth_j] any idea if one task hangs on IO what 
happens ?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to