jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-1188) Input streams returned from Blob instances should implement available()
Date Thu, 21 Nov 2013 03:39:35 GMT

    [ https://issues.apache.org/jira/browse/OAK-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13828460#comment-13828460
] 

Alexander Klimetschek commented on OAK-1188:
--------------------------------------------

Only doing it for "inline" is not enough. Contrary to the above, the use of {{BufferedInputStream}}
*requires* a correct implementation of {{available()}} since it calls it inside its looped
read() implementation. See OAK-956 (which can IMO be used to track this further).

> Input streams returned from Blob instances should implement available()
> -----------------------------------------------------------------------
>
>                 Key: OAK-1188
>                 URL: https://issues.apache.org/jira/browse/OAK-1188
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: mk, mongomk, segmentmk
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>             Fix For: 0.11
>
>
> Currently {{blob.getNewStream().available()}} returns 0 for all Microkernels (i.e for
{{MicroKernelInputStream}}, {{SegmentStream}}, {{BlobStoreInputStream}}). The method should
instead return the number of bytes available from that stream.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message