You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Rui Li (Jira)" <ji...@apache.org> on 2026/04/28 10:40:00 UTC
[jira] [Created] (HDFS-17914) Prevent DFSInputStream from issuing 0-byte reads
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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org