Rui Li created HDFS-17914:
-----------------------------

             Summary: Prevent DFSInputStream from issuing 0-byte reads
                 Key: HDFS-17914
                 URL: https://issues.apache.org/jira/browse/HDFS-17914
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs-client
            Reporter: Rui Li


Currently, {{DFSInputStream#actualGetFromOneDataNode}} can issue an extra 
{{BlockReader#read}} after the buffer is completely filled. This extra read can 
cause a wasted slow-lane read into the bounce buffer for 
{{{}BlockReaderLocal{}}}.

A possible fix is to terminate the loop once the requested slice is filled.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to