-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 2.7.1
-
Fix Version/s: None
-
Component/s: webhdfs
-
Labels:None
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()
- relates to
-
HBASE-14307 Incorrect use of positional read api in HFileBlock
-
- Closed
-