[
https://issues.apache.org/jira/browse/JCLOUDS-1367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17169263#comment-17169263
]
ASF subversion and git services commented on JCLOUDS-1367:
----------------------------------------------------------
Commit 9c21bf2cc2af3d9f45542285f278d1b85f700f2a in jclouds's branch
refs/heads/master from Andrew Gaul
[ https://gitbox.apache.org/repos/asf?p=jclouds.git;h=9c21bf2 ]
JCLOUDS-1367: Do not open open InputStream in copyBlob
This avoids an unneeded call to ByteStreams2.toByteArrayAndClose in
getBlob for range requests and elides a large memory allocation.
> Blob.getPayload.openStream() is inconsistent across implementations
> -------------------------------------------------------------------
>
> Key: JCLOUDS-1367
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1367
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-blobstore
> Affects Versions: 2.1.0
> Reporter: Rishab Manocha
> Assignee: Andrew Gaul
> Priority: Minor
> Labels: filesystem, transient
> Fix For: 2.2.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Blob.getPayload.openStream() returns a new InputStream object if the payload
> is a sub type of InputStream but returns the same stream if the payload is
> of type InputStream.
> It would be desirable to have it return a new Stream object which can be read
> independently.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)