[ https://issues.apache.org/jira/browse/CRAIL-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonas Pfefferle closed CRAIL-17. -------------------------------- > CrailBufferedStream: align access on underlying CoreStream > ---------------------------------------------------------- > > Key: CRAIL-17 > URL: https://issues.apache.org/jira/browse/CRAIL-17 > Project: Apache Crail > Issue Type: Improvement > Reporter: Jonas Pfefferle > Priority: Minor > Fix For: Not Applicable > > > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)