Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
2.7.1
-
None
-
None
Description
With the default Webhdfs server implementation the read apis in ByteRangeInputStream work as expected reading the correct number of bytes for these apis :
public int read(byte b[], int off, int len)
public int read(long position, byte[] buffer, int offset, int length)
But when a custom Webhdfs server implementation is plugged in which uses chunked Transfer-encoding, these apis read only the first chunk. Simple fix would be to loop and read till bytes specified similar to readfully()
Attachments
Attachments
Issue Links
- relates to
-
HBASE-14307 Incorrect use of positional read api in HFileBlock
- Closed