https://github.com/apache/spark
Revision 8c5ab4e10a7fdb4ee4fa8c2e7f37f038882486a9 authored by Herman van Hovell on 28 September 2017, 15:51:40 UTC, committed by Herman van Hovell on 28 September 2017, 15:51:40 UTC
This is a backport of https://github.com/apache/spark/commit/02bb0682e68a2ce81f3b98d33649d368da7f2b3d.

## 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 diagnosis was done locally.

Author: Herman van Hovell <hvanhovell@databricks.com>

Closes #19378 from hvanhovell/SPARK-22143-2.2.
1 parent 12a74e3
History
Tip revision: 8c5ab4e10a7fdb4ee4fa8c2e7f37f038882486a9 authored by Herman van Hovell on 28 September 2017, 15:51:40 UTC
[SPARK-22143][SQL][BRANCH-2.2] Fix memory leak in OffHeapColumnVector
Tip revision: 8c5ab4e

README.md

back to top