Uploaded image for project: 'Apache Crail'
  1. Apache Crail
  2. CRAIL-17

CrailBufferedStream: align access on underlying CoreStream

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Not Applicable
    • None

    Description

      After reopening an BufferedOutputStream the underlying CoreStream
      might be at an arbitrary position since the stream is purged on close.
      To avoid unnecessary operations on the underlying stream,
      e.g. because of slices crossing the block boundary we adjust
      the length of the first slice to align the position to slice size
      such that after the first write all following writes on the underlying
      stream will be aligned to slice size again. This also helps to avoid
      unaligned writes in block storage tiers.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pepperjo Jonas Pfefferle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: