You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2021/06/21 11:00:29 UTC
[GitHub] [hadoop] majdyz commented on pull request #3109: HADOOP-17764. S3AInputStream read does not re-open the input stream on the second read retry attempt
majdyz commented on pull request #3109:
URL: https://github.com/apache/hadoop/pull/3109#issuecomment-864940353
Hi @bogthe thanks for the feedback.
Sorry for getting back on this late, I'm running the test right now and will get back on this soon.
And for the testing part:
- Aside from the `.getObjectContent()` we also need to get the current implementation of the retry policy (the part where we have delay before the next retry) which attached in the `S3AReadOpContext`. I tried to keep the mocking minimum by only setting the behaviour of the inputStream, but to attach this we need to go from `InputStreamCallbacks` -> `S3Object` -> `S3ObjectInputStream` so two small mockings before that are needed. Let me know if there could be a better approach for this.
- For the failure scenario, I provided these two tests where the current implementation breaks, let me know if there is any other scenario I should provide for the test
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org