[ 
https://issues.apache.org/jira/browse/HIVE-29876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HIVE-29876:
----------------------------------
    Labels: pull-request-available  (was: )

> Unreleased resource in YarnQueueHelper
> --------------------------------------
>
>                 Key: HIVE-29876
>                 URL: https://issues.apache.org/jira/browse/HIVE-29876
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Zsolt Miskolczi
>            Priority: Major
>              Labels: pull-request-available
>
> Code: 
> [https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/YarnQueueHelper.java#L203]
> h3. Summary
> The function *handleUnexpectedStatusCode()* in *YarnQueueHelper.java* 
> sometimes fails to release a system resource allocated by *getErrorStream()* 
> on line {*}206{*}.The program can potentially fail to release a system 
> resource.
> h3. Explanation
> The program can potentially fail to release a system resource.
> In this case, there are program paths on which the resource allocated in 
> *YarnQueueHelper.java* on line *203* is not released.
> Resource leaks have at least two common causes:
> - Error conditions and other exceptional circumstances.
> - Confusion over which part of the program is responsible for releasing the 
> resource.
> Most unreleased resource issues result in general software reliability 
> problems. However, if an attacker can intentionally trigger a resource leak, 
> the attacker may be able to launch a denial of service attack by depleting 
> the resource pool.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to