You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this will make bs to be zero, which is then passed to BufferedReader as the buffer size causing the error.
In case the content length of the object to be read is zero, we of course don't need buffering at all, so I think we can simply skip wrapping obj by BufferedReader.
The text was updated successfully, but these errors were encountered:
In case we try to open an empty (zero-bytes) file on S3 in "rb" mode using pfio v2 API with the default buffering option, we get this error.
This is because
https://github.com/pfnet/pfio/blob/2.2.0/pfio/v2/s3.py#L401-L407
this will make
bs
to be zero, which is then passed toBufferedReader
as the buffer size causing the error.In case the content length of the object to be read is zero, we of course don't need buffering at all, so I think we can simply skip wrapping
obj
byBufferedReader
.The text was updated successfully, but these errors were encountered: