Steve Loughran created HDFS-10254:
-------------------------------------

             Summary: DfsClient undervalidates args for PositionedReadable 
operations
                 Key: HDFS-10254
                 URL: https://issues.apache.org/jira/browse/HDFS-10254
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs-client
    Affects Versions: 2.8.0
            Reporter: Steve Loughran


HDFS should can do stricter checking of the inputs

# raise an exception on negative offset of destination buffer
# explicitly raise an EOF exception if the file position is negative

Optionally: short-circuit read/readfully operations if the byte range is 0.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to