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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • 2.7.0
    • hdfs-client
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: