Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1427

Typo in GzipCodec.createInputStream - bufferSize

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.12.3
    • 0.13.0
    • io
    • None

    Description

      Theres a typo (I think) in GzipCodec:

             Decompressor decompressor =
               new ZlibDecompressor(ZlibDecompressor.CompressionHeader.AUTODETECT_GZIP_ZLIB,
                  64*1-24);
      

      gives a buffersize of 40, should be:

             Decompressor decompressor =
               new ZlibDecompressor(ZlibDecompressor.CompressionHeader.AUTODETECT_GZIP_ZLIB,
                  64*1024);
      

      Attachments

        1. GzipCodec.patch
          0.7 kB
          Espen Amble Kolstad
        2. GzipCodec.patch
          0.6 kB
          Espen Amble Kolstad

        Issue Links

          Activity

            People

              kolstae Espen Amble Kolstad
              kolstae Espen Amble Kolstad
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: