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

ASF GitHub Bot commented on TRAFODION-2252:
-------------------------------------------

GitHub user sureshsubbiah opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/734

    [TRAFODION-2252] Fix memory leak during certain insert

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sureshsubbiah/incubator-trafodion memleak1

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/734.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #734
    
----
commit 5c1fe9cb430a78439959399ee63358bf15448de3
Author: Suresh Subbiah <[email protected]>
Date:   2016-09-29T02:40:03Z

    [TRAFODION-2252] Fix two memory leaks during UPSERT statements

----


> Memory leak during compile of certain insert statements
> -------------------------------------------------------
>
>                 Key: TRAFODION-2252
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2252
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: connectivity-mxosrvr, sql-cmp
>    Affects Versions: any
>            Reporter: Suresh Subbiah
>            Assignee: Suresh Subbiah
>             Fix For: 2.1-incubating
>
>         Attachments: pprof64371.0.svg, pprof64371.sym
>
>
>  In a loading application that uses rowsets and parameters in an UPSERT USING 
> LOAD statement to add rows to a table (without an index), the attached memory 
> was seen using gperftools heap profiler. 
> Leaks were identified in
> (a) HvRoles_vec is an NAArray, but is alloocated in System heap and not 
> destroyed
> (b) HQCParseKey has a NAList data member ( HQCDynParamMap_) that is allocated 
> on system heap and not destroyed
> (c) in mxosrvr the method rePrepare2 allocates a char array that is not 
> deleted.
> This can be seen from attached svg files. Please download both files to a 
> directory and use any browser to open the .svg file
> Items (a) & (b) will be addressed in a PR and item (c) in a subsequent PR.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to