Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-372

There are three buffer copies in BlockOutputStream

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.1
    • Ozone Client
    • None
    • Done

    Description

      Currently, there are three buffer copies in ChunkOutputStream

      1. from byte[] to ByteBuffer, and
      2. from ByteBuffer to ByteString.
      3. from ByteString to ByteBuffer for checskum computation

      We should eliminate the ByteBuffer in the middle.

      For zero copy io, we should support WritableByteChannel instead of OutputStream. It won't be done in this JIRA.

      Attachments

        1. HDDS-372.001.patch
          39 kB
          Shashikant Banerjee
        2. HDDS-372.002.patch
          33 kB
          Shashikant Banerjee
        3. HDDS-372.003.patch
          37 kB
          Shashikant Banerjee
        4. HDDS-372.004.patch
          23 kB
          Shashikant Banerjee
        5. HDDS-372.005.patch
          23 kB
          Shashikant Banerjee
        6. HDDS-372.20180829.patch
          27 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

              shashikant Shashikant Banerjee
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: