You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2019/02/28 19:00:00 UTC
[jira] [Created] (HADOOP-16155) S3AInputStream read(bytes[]) to not
retry on read failure: pass action up
Steve Loughran created HADOOP-16155:
---------------------------------------
Summary: S3AInputStream read(bytes[]) to not retry on read failure: pass action up
Key: HADOOP-16155
URL: https://issues.apache.org/jira/browse/HADOOP-16155
Project: Hadoop Common
Issue Type: Sub-task
Components: fs/s3
Affects Versions: 3.2.0
Reporter: Steve Loughran
The S3AInputStream reacts to read(byte[]) failure by reopening the stream, just as for the single byte read(). We shouldn't need to do that. Instead just close the stream, return 0 and let the caller decided what to do.
why so?
# its in the contract of InputStream.read(bytes[]),
# readFully() can handle the 0 in its loop
# other apps can decided what to do.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org