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

László Bodor updated HIVE-29302:
--------------------------------
    Fix Version/s: 4.3.0

> Wider Tez session open scope should be guarded to prevent local resource leaks
> ------------------------------------------------------------------------------
>
>                 Key: HIVE-29302
>                 URL: https://issues.apache.org/jira/browse/HIVE-29302
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: László Bodor
>            Assignee: László Bodor
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.3.0
>
>
> use-case:
> 1. local resources are created (copied to HDFS):
> https://github.com/apache/hive/blob/770e70c98360ac0b029db46675e0dc5cd0e9040c/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionState.java#L297-L312
> 2. exception happens later anywhere, but before startSessionAndContainers 
> calls:
> https://github.com/apache/hive/blob/770e70c98360ac0b029db46675e0dc5cd0e9040c/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionState.java#L314-L381
> 3. local resources are not deleted from the scratch dir, because 
> startSessionAndContainers only takes care of codepaths inside:
> https://github.com/apache/hive/blob/770e70c98360ac0b029db46675e0dc5cd0e9040c/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionState.java#L509



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

Reply via email to