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

Typo in GzipCodec.createInputStream - bufferSize

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.12.3
    • Fix Version/s: 0.13.0
    • Component/s: io
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: