Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
This is observed through the AWS billing.
Issue might be the S3InputStream.read() which is used in readEntity().
Reading the block can be achieved through the AmazonS3 api's. So, I am proposing the following solution:
```
GetObjectRequest rangeObjectRequest = new GetObjectRequest(
bucketName, key);
rangeObjectRequest.setRange(startByte, noOfBytes);
S3Object objectPortion = s3Client.getObject(rangeObjectRequest);
S3ObjectInputStream wrappedStream = objectPortion.getObjectContent();
byte[] record = ByteStreams.toByteArray(wrappedStream);
Advantages of this solution: Parallel read will work for all types of s3 file systems.
Attachments
Issue Links
- links to