[jira] [Created] (HADOOP-16155) S3AInputStream read(bytes[]) to not retry on read failure: pass action up

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (HADOOP-16155) S3AInputStream read(bytes[]) to not retry on read failure: pass action up

JIRA jira@apache.org
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: [hidden email]
For additional commands, e-mail: [hidden email]