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

Filipe Oliveira updated SPARK-60098:
------------------------------------
    Description: 
https://issues.apache.org/jira/browse/SPARK-34863 introduced the 
ParquetColumnVector class and alongside it 2 column vectors: `repetitionLevels` 
and `definitionLevels`. These vectors are allocated by the class but never 
closed.

 

Meanwhile, other PRs have changed this class and also allocated column vectors 
but did not close them:
 * [https://github.com/apache/spark/pull/52557]
 * [https://github.com/apache/spark/pull/48851]

 

When using OFF_HEAP mode these vectors will lead to memory leaks.

  was:
 introduced the ParquetColumnVector class and alongside it 2 column vectors: 
`repetitionLevels` and `definitionLevels`. These vectors are allocated by the 
class but never closed.

 

Meanwhile, other PRs have changed this class and also allocated column vectors 
but did not close them:
 * [https://github.com/apache/spark/pull/52557]
 * [https://github.com/apache/spark/pull/48851]

 

When using OFF_HEAP mode these vectors will lead to memory leaks.


> Memory leaks in ParquetColumnVector
> -----------------------------------
>
>                 Key: SPARK-60098
>                 URL: https://issues.apache.org/jira/browse/SPARK-60098
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: Filipe Oliveira
>            Priority: Minor
>
> https://issues.apache.org/jira/browse/SPARK-34863 introduced the 
> ParquetColumnVector class and alongside it 2 column vectors: 
> `repetitionLevels` and `definitionLevels`. These vectors are allocated by the 
> class but never closed.
>  
> Meanwhile, other PRs have changed this class and also allocated column 
> vectors but did not close them:
>  * [https://github.com/apache/spark/pull/52557]
>  * [https://github.com/apache/spark/pull/48851]
>  
> When using OFF_HEAP mode these vectors will lead to memory leaks.



--
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