You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "Gabor Szadovszky (Jira)" <ji...@apache.org> on 2020/12/15 13:28:00 UTC

[jira] [Commented] (PARQUET-1954) TCP connection leak in parquet dump

    [ https://issues.apache.org/jira/browse/PARQUET-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17249689#comment-17249689 ] 

Gabor Szadovszky commented on PARQUET-1954:
-------------------------------------------

Good catch, [~xiepengjie]. Would you like to create PR to fix this?

> TCP connection leak in parquet dump
> -----------------------------------
>
>                 Key: PARQUET-1954
>                 URL: https://issues.apache.org/jira/browse/PARQUET-1954
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-mr
>            Reporter: xiepengjie
>            Priority: Major
>
> Hi,
> When i'm trying to dump a parquet file, i find the TCP connection leak in org.apache.parquet.tools.command.DumpCommand#dump :
>  
> {code:java}
> ...
> ParquetFileReader freader = null;
> if (showmd) {
>     try {
>         long group = 0;
>         for (BlockMetaData block : blocks) {
>             ...
>             freader = new ParquetFileReader(
>                 conf, meta.getFileMetaData(), inpath, rblocks, columns);
>             ...
>             out.flushColumns();
>         }
>     } finally {
>         if (freader != null) {
>             freader.close();
>         }
>     }
> }
> {code}
>  
>  



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