ahmarsuhail opened a new pull request, #4294: URL: https://github.com/apache/hadoop/pull/4294
### Description of PR If close the prefetching input stream before prefetched blocks have finished reading the S3 input stream, the sdk repeatedly complains "Not all bytes were read from the S3ObjectInputStream". This happened on `S3AInputStream` as well, see [this](https://github.com/aws/aws-sdk-java/issues/1211) issue for more details. Closing the stream before draining it will abort the connection, so to allow for connection reuse we drain it asynchronously. ### How was this patch tested? Tested in eu-west-1 by running `mvn -Dparallel-tests -DtestsThreadCount=16 clean verify` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
