Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7790

Do not create optional fields in DFSInputStream unless they are needed

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.7.0
    • Component/s: hdfs-client
    • Labels:
      None
    • Target Version/s:

      Description

      DFSInputStream#oneByteBuffer and DFSInputStream#extendedReadBuffers are only used some of the time, and they are always used under the positional lock. Let's create them on demand to save memory.

        Attachments

        1. HDFS-7790.001.patch
          3 kB
          Colin McCabe

          Activity

            People

            • Assignee:
              cmccabe Colin McCabe
              Reporter:
              cmccabe Colin McCabe
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: