Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-3360

Honor ByteBuffer position and limit when writing compressed B-Tree pages

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Done
    • 0.9.9
    • 0.9.9
    • STO - Storage

    Description

      Compressed page writer always clear the to-be-written ByteBuffer position and limit to be the entire buffer. This could be fine for writing pages in row format. However, in columnar format, this might incur compressing and writing unrelated data (as the ByteBuffer may contain data from a previous write). 

      Instead of clearing the ByteBuffer position and limit at the compressed page writer, it should be done during the call to BufferCache#confiscatePage(), which is the case currently. The compressed page writer, however, should not re-clear whatever limit is provided.

       

      Attachments

        Activity

          People

            wyk Wail Y. Alkowaileet
            wyk Wail Y. Alkowaileet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: