[
https://issues.apache.org/jira/browse/CRAIL-17?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16417374#comment-16417374
]
ASF GitHub Bot commented on CRAIL-17:
-------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/incubator-crail/pull/11
> 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
>
> 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)