[
https://issues.apache.org/jira/browse/PARQUET-2431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gabor Szadovszky resolved PARQUET-2431.
---------------------------------------
Resolution: Fixed
> Handle ByteBufferAllocator gracefully
> -------------------------------------
>
> Key: PARQUET-2431
> URL: https://issues.apache.org/jira/browse/PARQUET-2431
> Project: Parquet
> Issue Type: Bug
> Components: parquet-mr
> Affects Versions: 1.13.1
> Reporter: Gabor Szadovszky
> Assignee: Gabor Szadovszky
> Priority: Major
>
> We have introduced the interface
> [ByteBufferAllocator|https://github.com/apache/parquet-mr/blob/master/parquet-common/src/main/java/org/apache/parquet/bytes/ByteBufferAllocator.java]
> a while ago. This interface has its {{release}} method while parquet-mr does
> not test it whether it is invoked properly in all required situations.
> We need to add tests for this and fix the potential issues.
> Note: In most cases the release method is a no-op so not invoking it would
> not cause any issues. Meanwhile, if someone would implement their own
> {{ByteBufferAllocator}} that requires the {{release}} method to be invoked we
> might generate memory leaks failing to do so.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]