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

ZstdDecompressorStream should close `zstdInputStream`

    XMLWordPrintableJSON

    Details

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

      Description

      `ZstdDecompressorStream` should close its resource because `CompressionInputStream.close` closes only the inter stream.

      public class ZstdDecompressorStream extends CompressionInputStream {
      
        private ZstdInputStream zstdInputStream;
      
        public ZstdDecompressorStream(InputStream stream) throws IOException {
          super(stream);
          zstdInputStream = new ZstdInputStream(stream);
        }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              dongjoon Dongjoon Hyun
              Reporter:
              dongjoon Dongjoon Hyun
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: