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

ASF GitHub Bot updated PARQUET-870:
-----------------------------------
    Labels: pull-request-available  (was: )

> ParquetFileWriter.appendFile does not close file handle - resource leak
> -----------------------------------------------------------------------
>
>                 Key: PARQUET-870
>                 URL: https://issues.apache.org/jira/browse/PARQUET-870
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-mr
>    Affects Versions: 1.8.0, 1.9.1
>            Reporter: George Smith
>            Priority: Major
>              Labels: pull-request-available
>
> Current implementation of the method ParquetFileWriter.appendFile does not 
> close file handle.
> {code}ParquetFileReader.open(conf, file).appendTo(this);{code}
> My suggested fix is following:
> {code}
> try (ParquetFileReader reader = ParquetFileReader.open(conf, file)) {
>    reader.appendTo(this);
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to