[ 
https://issues.apache.org/jira/browse/IMPALA-12274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17758007#comment-17758007
 ] 

ASF subversion and git services commented on IMPALA-12274:
----------------------------------------------------------

Commit 748c3b894f943d0bba5bb25e066365f762e7ee43 in impala's branch 
refs/heads/master from qqzhang
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=748c3b894 ]

IMPALA-12274: Fix memory leak from unreleased local reference

In the constructor of the catalog class, after converting the catalog
object created by NewObject to a global reference, the local reference
was forgotten to be released, resulting in a minor memory leak.

The solution is to use JniLocalFrame to automatically manage the local
reference, ensuring proper memory management.

Testing: manually test

Change-Id: Ic93ea3270dcba3ad4903aa053cc283d4f700e948
Reviewed-on: http://gerrit.cloudera.org:8080/20175
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


>  Memory leak because of  the local reference created by `NewObject` in class 
> Catalog was not released 
> ------------------------------------------------------------------------------------------------------
>
>                 Key: IMPALA-12274
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12274
>             Project: IMPALA
>          Issue Type: Bug
>    Affects Versions: Impala 3.0, Impala 3.1.0, Impala 3.2.0, Impala 4.0.0, 
> Impala 3.3.0, Impala 3.4.0, Impala 4.1.0, Impala 4.2.0
>            Reporter: zhangqianqiong
>            Assignee: zhangqianqiong
>            Priority: Minor
>             Fix For: Impala 4.3.0
>
>
>      In the constructor of the {{catalog}} class, after converting the 
> {{catalog}} object created by {{NewObject}} to a global reference, the local 
> reference was forgotten to be released, resulting in a minor memory leak.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to