Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
The wasb mimicking of getFileBlockLocations() uses the length of the file as the number to use to calculate the # of blocks to create (i.e. file.length/blocksize), when it should be just the range of the request.
As a result, you always get the number of blocks in the total file, not the number spanning the range of (start, len). If this is less (i.e start > 0 or len < file.length), you end up with some 0-byte-range blocks at the end
Attachments
Issue Links
- Is contained by
-
HADOOP-14943 Add common getFileBlockLocations() emulation for object stores, including S3A
- Patch Available