Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-1954

TCP connection leak in parquet dump

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12.0
    • Component/s: parquet-mr
    • Labels:
      None

      Description

      Hi,

      When i'm trying to dump a parquet file, i find the TCP connection leak in org.apache.parquet.tools.command.DumpCommand#dump :

       

      ...
      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();
              }
          }
      }
      

       

       

        Attachments

          Activity

            People

            • Assignee:
              xiepengjie xiepengjie
              Reporter:
              xiepengjie xiepengjie
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: