On Mon, Sep 2, 2019 at 11:57 AM Stefan Bodewig wrote:
> Hi all
>
> https://issues.apache.org/jira/browse/COMPRESS-491 correctly points out
> that some of our InputStream implementantions violate the contract of
> the read(byte[]...) pair of methods. They may return 0 instead of trying
> to block
As a reference point:
int java.io.InputStream.read(byte[] b) throws IOException
Reads some number of bytes from the input stream and stores them into the
buffer array b. The number of bytes actually read is returned as an
integer. This method blocks until input data is available, end of file is
d
Hi all
https://issues.apache.org/jira/browse/COMPRESS-491 correctly points out
that some of our InputStream implementantions violate the contract of
the read(byte[]...) pair of methods. They may return 0 instead of trying
to block and read data.
Digging deeper this really only seems to happen on