GitHub user hvanhovell opened a pull request:

    https://github.com/apache/spark/pull/19367

    [SPARK-22143][SQL] Fix memory leak in OffHeapColumnVector

    ## What changes were proposed in this pull request?
    `WriteableColumnVector` does not close its child column vectors. This can 
create memory leaks for `OffHeapColumnVector` where we do not clean up the 
memory allocated by a vectors children. This can be especially bad for string 
columns (which uses a child byte column vector).
    
    ## How was this patch tested?
    I have updated the existing tests to always use both on-heap and off-heap 
vectors. Testing and diagnoses was done locally.

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

    $ git pull https://github.com/hvanhovell/spark SPARK-22143

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

    https://github.com/apache/spark/pull/19367.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 #19367
    
----

----


---

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

Reply via email to