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

Increase Compression Buffer Sizes - Remove Magic Numbers

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.10.0, 3.2.0
    • Fix Version/s: None
    • Component/s: io
    • Labels:
      None
    • Flags:
      Patch

      Description

      Compression.java
          // data input buffer size to absorb small reads from application.
          private static final int DATA_IBUF_SIZE = 1 * 1024;
          // data output buffer size to absorb small writes from application.
          private static final int DATA_OBUF_SIZE = 4 * 1024;
      

      There exists these hard coded buffer sizes in the Compression code. Instead, use the JVM default sizes, which, this day and age, are usually set for 8K.
       

        Attachments

        1. HADOOP-16022.1.patch
          3 kB
          David Mollitor

          Activity

            People

            • Assignee:
              belugabehr David Mollitor
              Reporter:
              belugabehr David Mollitor
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: